yq1 1 月之前
父節點
當前提交
ae88ce022c

+ 14 - 17
src/xt_pages/user/components/PatientDetail.vue 查看文件

@@ -285,7 +285,7 @@
285 285
                 <el-form-item label="住院(门诊)号 : " prop="admissionNumber">
286 286
                   <el-input v-model="form.admissionNumber" disabled></el-input>
287 287
                 </el-form-item>
288
-              </el-col> 
288
+              </el-col>
289 289
              <el-col :span="8">
290 290
                 <el-form-item label="工作单位 : " prop="work">
291 291
                   <el-input v-model="form.work" disabled></el-input>
@@ -310,7 +310,7 @@
310 310
                   :key="index"
311 311
                   :label="item.name"
312 312
                   :value="item.id"
313
-               
313
+
314 314
                 />
315 315
               </el-select>
316 316
               </el-form-item>
@@ -760,7 +760,7 @@
760 760
                   </el-select>
761 761
                 </el-form-item>
762 762
               </el-col>
763
-          
763
+
764 764
               <el-col :span="8">
765 765
                 <el-form-item label="单位地址 : " prop="unit_address">
766 766
                   <el-input v-model="form.unit_address" disabled></el-input>
@@ -1002,7 +1002,7 @@
1002 1002
                   <td style="width:8%;padding: 3px 0px;font-size: 17px;font-weight: 500;">
1003 1003
                     姓名
1004 1004
                     <!-- <div class="td_proj_title">姓名</div> -->
1005
-                  </td> 
1005
+                  </td>
1006 1006
                   <td style="padding: 3px 0px;font-size: 17px;">
1007 1007
                     {{ patientPrint.name }}
1008 1008
                     <!-- <div class="td_proj_content">{{ patientPrint.name }}</div> -->
@@ -1121,7 +1121,7 @@
1121 1121
                     <!-- <div class="td_proj_title">主诉</div> -->
1122 1122
                   </td>
1123 1123
                   <!-- class="td_proj_content td_align_left" -->
1124
-                  <td colspan="7" style="text-align: left; padding:0px 5px ;font-size: 17px;"> 
1124
+                  <td colspan="7" style="text-align: left; padding:0px 5px ;font-size: 17px;">
1125 1125
                     {{ patientPrint.patient_complains }}
1126 1126
                     <!-- <div style="padding: 0px 0px;"
1127 1127
                       v-html="patientPrint.patient_complains"
@@ -1135,7 +1135,7 @@
1135 1135
                   <td colspan="7">
1136 1136
                     <!-- <div class="td_proj_content td_align_left">{{patientPrint.present_history}}</div> -->
1137 1137
 
1138
-                    
1138
+
1139 1139
                     <div
1140 1140
                       class="td_proj_content td_align_left"
1141 1141
                       v-html="patientPrint.present_history"
@@ -1148,7 +1148,7 @@
1148 1148
                     <div class="td_proj_title">既<br />往<br />史</div>
1149 1149
                   </td>
1150 1150
                   <td colspan="7">
1151
-                    
1151
+
1152 1152
                     <div class="td_proj_content td_align_left">
1153 1153
                       {{ patientPrint.past_history }}
1154 1154
                     </div>
@@ -1224,11 +1224,11 @@
1224 1224
             <div class="print_footnote_panel">
1225 1225
               <div class="proj">
1226 1226
                 <span class="proj_title">日期:</span>
1227
-               
1227
+
1228 1228
                 <span v-if="org_id == 3907 || org_id == 9671|| org_id == 9675 || org_id == 10394 || org_id ==10612 || org_id == 0 || org_id ==10617">
1229 1229
                 {{getTime(patientPrint.created_time)}}</span>
1230 1230
                 <span v-else>{{ printDate }}</span>
1231
-              
1231
+
1232 1232
               </div>
1233 1233
               <div class="proj">
1234 1234
                  <span class="proj_title">医生签名:
@@ -1722,7 +1722,7 @@ export default {
1722 1722
               patietInfo.first_treatment_date,
1723 1723
               "{y}-{m}-{d}"
1724 1724
             );
1725
-            
1725
+
1726 1726
             this.form.patient_source = patietInfo.patient_source
1727 1727
             if (patietInfo.patient_start_time != 0) {
1728 1728
               this.form.patient_start_time = uParseTime(
@@ -1791,7 +1791,7 @@ export default {
1791 1791
             var diseasesArr = response.data.data.diseases;
1792 1792
               // console.log('123456',response.data.data);
1793 1793
             this.patientPrint = patietInfo;
1794
-
1794
+              console.log('this.patientPrint',this.patientPrint);
1795 1795
             var sourceLen = this.sourceOptions.length;
1796 1796
             for (let index = 0; index < sourceLen; index++) {
1797 1797
               if (this.sourceOptions[index].value === patietInfo.source) {
@@ -1840,7 +1840,7 @@ export default {
1840 1840
               "{y}-{m}-{d}"
1841 1841
             );
1842 1842
             this.patientPrint.age = jsGetAge(this.patientPrint.birthday, "-");
1843
-            
1843
+
1844 1844
             this.patientPrint.patient_complains =
1845 1845
               patietInfo.patient_complains.replace(/\n/g, "<br/>");
1846 1846
               // console.log('qwerewqrt',patietInfo.present_history);
@@ -1866,7 +1866,7 @@ export default {
1866 1866
             if (typeof patietInfo.temperature === "number") {
1867 1867
               this.patientPrint.temperature = patietInfo.temperature.toFixed(1);
1868 1868
             }
1869
-
1869
+            console.log('this.patientPrint.remark',this.patientPrint.remark);
1870 1870
             if (patietInfo.reimbursement_way_id > 0) {
1871 1871
               var wayLen = this.wayOptions.length;
1872 1872
               for (let index = 0; index < wayLen; index++) {
@@ -2072,9 +2072,6 @@ export default {
2072 2072
             } else {
2073 2073
               this.patientPrint.hospital_first_dialysis_date = "";
2074 2074
             }
2075
-
2076
-           
2077
-
2078 2075
             this.checkIdCardNo();
2079 2076
           } else {
2080 2077
             console.log("patient get err state");
@@ -2264,7 +2261,7 @@ export default {
2264 2261
     //    })
2265 2262
     // }
2266 2263
   },
2267
-  
2264
+
2268 2265
 };
2269 2266
 </script>
2270 2267
 

+ 76 - 38
src/xt_pages/user/evaluationtool/Cathetershedding.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
     <div class="patient-container">
3
-        <patient-sidebar :id="patientID" defaultActive="5-6"></patient-sidebar>
3
+        <patient-sidebar :id="patientID" defaultActive="5-6" @tran-patient="tranpatient"></patient-sidebar>
4 4
         <div>
5 5
             <div class="patient-app-container advice-container app-container">
6 6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
@@ -32,7 +32,7 @@
32 32
                         <td rowspan="3">
33 33
                           <div style="vertical-align: top; color: black; padding: 5px;">
34 34
                             <span v-for="item in hulicuoshi">
35
-                              <label><input name="ball" type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/>&nbsp;{{item.label}}</label> <br/>
35
+                              <label><input name="ball" type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/>&nbsp;<span>{{ item.id }}.</span>{{item.label}}</label> <br/>
36 36
                             </span>
37 37
                           </div>
38 38
                         </td>
@@ -84,13 +84,13 @@
84 84
 
85 85
                       <div class="bottoms">
86 86
                           <span>责任护士:</span>
87
-                          <el-select v-model="Dutynurse" placeholder="请选择" >
87
+                          <el-select v-model="Dutynurse" placeholder="请选择" style="width:150px;">
88 88
                               <el-option
89 89
                               v-for="item in Dutynursearr"
90
-                              :key="item.value"
90
+                              :key="item.id"
91 91
                               :label="item.label"
92
-                              :value="item.value"
93
-                              style="width:150px;">
92
+                              :value="item.id"
93
+                              >
94 94
                               </el-option>
95 95
                           </el-select>
96 96
                       </div>
@@ -127,9 +127,9 @@
127 127
                             <el-select v-model="appraiser" placeholder="请选择" style="width: 120px;">
128 128
                                 <el-option
129 129
                                 v-for="item in optionsarr"
130
-                                :key="item.value"
130
+                                :key="item.id"
131 131
                                 :label="item.label"
132
-                                :value="item.value">
132
+                                :value="item.id">
133 133
                                 </el-option>
134 134
                             </el-select>
135 135
                         </p>
@@ -150,9 +150,9 @@
150 150
                             <el-select v-model="hushi" placeholder="请选择" style="width: 120px;">
151 151
                                 <el-option
152 152
                                 v-for="item in hushiarr"
153
-                                :key="item.value"
153
+                                :key="item.id"
154 154
                                 :label="item.label"
155
-                                :value="item.value">
155
+                                :value="item.id">
156 156
                                 </el-option>
157 157
                             </el-select>
158 158
                         </p>
@@ -183,6 +183,7 @@
183 183
 <script>
184 184
 import { uParseTime } from '@/utils/tools'
185 185
 import PatientSidebar from '../components/PatientSidebar.vue'
186
+import {savePatientHpressuresore} from '@/api/fallassement'
186 187
 export default {
187 188
   components:{
188 189
     PatientSidebar
@@ -203,15 +204,19 @@ export default {
203 204
       value:'',
204 205
       date:this.getTime(new Date()),
205 206
       Dutynurse:'',//责任护士
206
-      Dutynursearr:[],//责任护士数组
207
+      // Dutynursearr:[],//责任护士数组
208
+      Dutynursearr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
207 209
       appraiser:'',
208
-      optionsarr:[],
210
+      // optionsarr:[],
211
+      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
209 212
       jiashu_date:this.getTime(new Date()),//家属时间
210 213
       zhuanggui:'',//转归
211 214
       hushi:'',//护理
212
-      hushiarr:'',//护理
215
+      hushiarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],//护理
213 216
       hushi_date:this.getTime(new Date()),//护理时间
214
-      cuoshi_show:[],
217
+      cuoshi_show:[],//护理措施选中数组
218
+      Patient_info:{name:'',dialysis_no:''},
219
+      
215 220
       tuoguan:[{value:1,label:'低危导管 (1分)',is_check:false,check:0},
216 221
               {value:2,label:'中危导管 (2分)',is_check:false,check:0},
217 222
               {value:3,label:'高危导管 (3分)',is_check:false,check:0}
@@ -226,19 +231,21 @@ export default {
226 231
             {value:2,label:'部分配合 (2分)',is_check:false,check:0},
227 232
             {value:3,label:'不配合 (3分)',is_check:false,check:0},
228 233
             ],
229
-      hulicuoshi:[{id:1,label:'1.管道维护,导管脱落严重后果及预防措施的健康教育;',is_check:false,check:0},
230
-      {id:2,label:'2.床边悬挂警示标识(>9分悬挂);',is_check:false,check:0},{id:3,label:'3.正确妥善固定;',is_check:false,check:0},
231
-      {id:4,label:'4.正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;',is_check:false,check:0},
232
-      {id:5,label:'5.加强巡视,及时发现满足患者需要;',is_check:false,check:0},{id:6,label:'6.严格交接班,各班重点交接,观察外露长度,必要时记录;',is_check:false,check:0},
233
-      {id:7,label:'7.昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
234
-      {id:8,label:'8.进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
235
-      {id:9,label:'9.对于气管插管清醒患者,进行心理疏导和安全教育。',is_check:false,check:0},]
236
-      // tuoguan:['低危导管 (1分)','中危导管 (2分)','高危导管 (3分)'],
237
-      // yishi:['意识清醒 (0分)','中昏迷、深昏迷 (1分)','嗜睡、昏睡 (2分)','浅昏迷 (3分)','意识模糊 (4分)'],
238
-      // peihe:['完全配合 (1分)','部分配合 (2分)','不配合 (3分)']
234
+      hulicuoshi:[{id:1,label:'管道维护,导管脱落严重后果及预防措施的健康教育;',is_check:false,check:0},
235
+      {id:2,label:'床边悬挂警示标识(>9分悬挂);',is_check:false,check:0},{id:3,label:'正确妥善固定;',is_check:false,check:0},
236
+      {id:4,label:'正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;',is_check:false,check:0},
237
+      {id:5,label:'加强巡视,及时发现满足患者需要;',is_check:false,check:0},{id:6,label:'严格交接班,各班重点交接,观察外露长度,必要时记录;',is_check:false,check:0},
238
+      {id:7,label:'昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
239
+      {id:8,label:'进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
240
+      {id:9,label:'对于气管插管清醒患者,进行心理疏导和安全教育。',is_check:false,check:0},]
239 241
     }
240 242
   },
243
+  created(){
244
+    const id = this.$route.params && this.$route.params.id
245
+    this.patientID = parseInt(id)
246
+  },
241 247
   methods:{
248
+    // 选中
242 249
     handleCheckedCitiesChange(e){
243 250
       if(e == this.radio){
244 251
         this.radio_val = e
@@ -250,26 +257,49 @@ export default {
250 257
         this.radio2_val = e
251 258
       }
252 259
     },
260
+    // 历史
253 261
     daoguanhistory(){
254
-      this.$router.push({path: '/patients/daoguan_history'})
262
+      this.$router.push({
263
+        path: '/patients/daoguan_history',
264
+        query:{patient_id:this.patientID,
265
+              Patient_info:this.Patient_info}
266
+      })
255 267
     },
256 268
     // 确认
257 269
     daoguanclick(){
270
+      const data = {}
271
+      var list =[]
272
+      data['radio'] = this.radio
273
+      data['radio1'] = this.radio1
274
+      data['radio2'] = this.radio2
275
+      data['total'] = this.duct_Totalpoints
276
+      data['cuoshi'] = this.cuoshi_show
277
+      data['cuoshi1'] = this.hulicuoshi
278
+      data['date'] = this.date
279
+      data['Dutynurse'] = this.Dutynurse
280
+      data['appraiser'] = this.appraiser
281
+      data['jiashu_date'] = this.jiashu_date
282
+      data['zhuanggui'] = this.zhuanggui
283
+      data['hushi'] = this.hushi
284
+      data['hushi_date'] = this.hushi_date
285
+      list.push(data)
258 286
       var params={
259
-        radio:this.radio,
260
-        radio1:this.radio1,
261
-        radio2:this.radio2,
262
-        duct_Totalpoints:this.duct_Totalpoints,
263
-        hulicuoshi:this.cuoshi_show,
264
-        date:this.date,//评估时间
265
-        Dutynurse:this.Dutynurse,//责任护士
266
-        appraiser:this.appraiser,//评估人
267
-        jiashu_date:this.jiashu_date,
268
-        zhuanggui:this.zhuanggui,
269
-        hushi:this.hushi,
270
-        hushi_date:this.hushi_date,
271
-        patientID:this.patientID
287
+        patient_id:this.patientID,
288
+        record_date:this.date,
289
+        is_type:4,
290
+        list:list,
272 291
       }
292
+      savePatientHpressuresore(params).then(response =>{
293
+        if(response.data.state == 1){
294
+          console.log('111111111',response.data.data);
295
+          const cath = response.data.data.pedFallssessment
296
+          this.$message({message:'保存成功',type:'success'})
297
+          // if(cath.text !=''){
298
+          //   const text = JSON.parse(cath.text)
299
+            
300
+          // }
301
+        }
302
+      })
273 303
       console.log('params====',params);
274 304
     },
275 305
     // 点击护理措施
@@ -307,6 +337,14 @@ export default {
307 337
         return uParseTime(val, '{y}-{m}-{d}')
308 338
         }
309 339
     },
340
+    // 患者信息
341
+    tranpatient(event){
342
+      console.log('event',event);
343
+      this.Patient_info={
344
+        name:event.name,
345
+        dialysis_no:event.dialysis_no
346
+      }
347
+    },
310 348
   },
311 349
   computed:{
312 350
     duct_Totalpoints(){

+ 272 - 45
src/xt_pages/user/evaluationtool/Glasgow.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="patient-container">
3
-    <patient-sidebar :id="patientID" defaultActive="5-13"></patient-sidebar>
3
+    <patient-sidebar :id="patientID" defaultActive="5-13" @tran-patient="tranpatient"></patient-sidebar>
4 4
     <div>
5 5
       <div class="patient-app-container advice-container app-container">
6 6
         <div class="content_top">
@@ -14,7 +14,8 @@
14 14
                 <el-button type="success" @click="open_print=true" v-if="Glas_gzdayin">打印</el-button>
15 15
               </div>
16 16
               <div style="flex:1" v-if="Glas_baoxiao">
17
-                <el-button type="primary" @click="Glas_save" >保存</el-button>
17
+                <el-button type="primary" @click="Glas_save" v-if="qufen == false">保存</el-button>
18
+                <el-button type="primary" @click="Glas_save2" v-if="qufen == true && dele_id != ''">保存1</el-button>
18 19
                 <el-button  @click="Glas_quxiao" >取消</el-button>
19 20
               </div>
20 21
 
@@ -159,8 +160,8 @@
159 160
             <div style="width:100%;margin-top: 20px;">
160 161
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
161 162
               <div style="margin-top: 20px;font-size: 16px;">
162
-                <span>患者姓名:</span>
163
-                <span>透析号:</span>
163
+                <span>患者姓名:{{ Patient_info.name }}</span>
164
+                <span>透析号:{{ Patient_info.dialysis_no }}</span>
164 165
                 <span>评估日期:{{ date }}</span>
165 166
                 <span>评估护士:{{ getpinggr(Glas_pinggu) }}</span>
166 167
                 <span>总分:{{ Glasgow_Totalpoints }}</span>
@@ -240,6 +241,7 @@
240 241
 <script>
241 242
 import PatientSidebar from '../components/PatientSidebar.vue'
242 243
 import { uParseTime } from '@/utils/tools'
244
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
243 245
 export default {
244 246
   components:{
245 247
     PatientSidebar
@@ -259,6 +261,8 @@ export default {
259 261
       options:[],
260 262
       tableData:[],
261 263
       glasgow_input:'',
264
+      limit:10,
265
+      page:1,
262 266
       date:this.getTime(new Date()),
263 267
       zhengyan:[{value:4,label:'自动睁眼(4分)',is_check:false,check:0},{value:3,label:'互换睁眼(3分)',is_check:false,check:0},{value:2,label:'刺激睁眼(2分)',is_check:false,check:0},{value:1,label:'无反应(1分)',is_check:false,check:0}],
264 268
       yanyu:[{value:5,label:'正常(5分)',is_check:false,check:0},{value:4,label:'不准确回答问题(4分)',is_check:false,check:0},
@@ -267,21 +271,30 @@ export default {
267 271
       {value:3,label:'刺痛肢体屈曲(3分)',is_check:false,check:0},{value:2,label:'刺痛肢体过伸(2分)',is_check:false,check:0},{value:1,label:'无反应(1分)',is_check:false,check:0}],
268 272
 
269 273
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
270
-      history_Glasgow:[{date:'2023-9-27',mark:'',evaluate:''}],
274
+      history_Glasgow:[],
271 275
 
272
-      append:false,
273
-      Glasadd_show:true,
274
-      Glas_gzdayin:false,
275
-      Glas_baoxiao:false,
276
+      append:false,//显示遮罩层
277
+      Glasadd_show:true,//显示新增
278
+      Glas_gzdayin:false,//显示编辑删除
279
+      Glas_baoxiao:false,//显示保存
280
+      qufen:false,//区分新增保存和修改保存
276 281
       cancel_num:0,
277 282
       Glas_pinggu:null,
278 283
       open_print:false,
279 284
       dele_id:'',
280 285
       dele_dialogVisible:false,
281
-      dayintime:this.getTime(new Date())
286
+      dayintime:this.getTime2(new Date()),
287
+      glasgow_zong:0,
288
+      Patient_info:{name:'',dialysis_no:''},
282 289
     }
283 290
   },
291
+  created(){
292
+    const id = this.$route.params && this.$route.params.id
293
+    this.patientID = parseInt(id)
294
+    this.getlist()
295
+  },
284 296
   methods:{
297
+    //睁眼
285 298
     handleCheckedCitiesChange(item){
286 299
       for(let i=0;i<this.zhengyan.length;i++){
287 300
         if(item.value == this.zhengyan[i].value){
@@ -300,6 +313,7 @@ export default {
300 313
         }
301 314
       }
302 315
     },
316
+    // 语言
303 317
     yuyan_change(item){
304 318
       for(let i=0;i<this.yanyu.length;i++){
305 319
         if(item.value == this.yanyu[i].value){
@@ -318,6 +332,7 @@ export default {
318 332
         }
319 333
       }
320 334
     },
335
+    // 运动
321 336
     yundong_change(item){
322 337
 
323 338
       for(let i=0;i<this.yundong.length;i++){
@@ -343,8 +358,10 @@ export default {
343 358
       this.append=true
344 359
       this.Glas_baoxiao=true
345 360
       this.Glasadd_show =false
361
+      this.Glas_gzdayin = false
362
+      this.qufen = false
346 363
     },
347
-    // 保存
364
+    // 新增保存
348 365
     Glas_save(){
349 366
       if(this.Glas_pinggu==null){
350 367
         this.$message('请选择评估人')
@@ -353,38 +370,110 @@ export default {
353 370
         this.Glas_baoxiao = false
354 371
         this.Glas_gzdayin = true
355 372
         this.cancel_num = 1
373
+
374
+        const data = {}
375
+        var list = []
376
+        data['zhengyan'] = this.zhengyan_num
377
+        data['yanyu'] = this.yuyan_num
378
+        data['yundong'] = this.yundong_num
379
+        data['glasgow_input'] = this.glasgow_input
380
+        data['Glas_pinggu'] = this.Glas_pinggu
381
+        data['date'] = this.date
382
+        data['total'] = this.Glasgow_Totalpoints
383
+        list.push(data)
356 384
         var params={
357
-          zhengyan:this.zhengyan_num,
358
-          yanyu:this.yuyan_num,
359
-          yundong:this.yundong_num,
360
-          glasgow_input:this.glasgow_input,
361
-          Glas_pinggu:this.Glas_pinggu,
362
-          date:this.date,
363
-          Glasgow_Totalpoints:this.Glasgow_Totalpoints,
364
-        }
365
-        console.log('1111111',params);
366
-        const arr={
367
-          date:this.date,
368
-          mark:this.Glasgow_Totalpoints,
369
-          evaluate:this.Glas_pinggu
385
+          patient_id:this.patientID,
386
+          record_date:this.date,
387
+          is_type:11,
388
+          list:list,
370 389
         }
371
-        console.log('2121212',arr,params);
372
-        this.history_Glasgow.push(arr)
373
-        const Glalen=this.pinggr
374
-        const historylen = this.history_Glasgow
375
-        var pingguname =''
376
-        for(let x=0;x<historylen.length;x++){
377
-          historylen[x].mark = this.Glasgow_Totalpoints
378
-          for(let i=0;i<Glalen.length;i++){
379
-            if(this.Glas_pinggu==Glalen[i].id){
380
-              pingguname = Glalen[i].label
390
+        savePatientHpressuresore(params).then(response =>{
391
+            if(response.data.state == 1){
392
+              const Glasgow = response.data.data.pedFallssessment
393
+              console.log('response.data.state',response.data.data.pedFallssessment);
394
+              if(Glasgow.text !=''){
395
+                var text = JSON.parse(Glasgow.text)
396
+                const arr ={
397
+                  id:Glasgow.id,
398
+                  date:text.date,
399
+                  mark:text.total,
400
+                  evaluate:this.getpinggr(text.Glas_pinggu),
401
+                  list:text
402
+                }
403
+                this.history_Glasgow.push(arr)
404
+              }
405
+            }
406
+        })
407
+        // console.log('1111111',params);
408
+        // const arr={
409
+        //   date:this.date,
410
+        //   mark:this.Glasgow_Totalpoints,
411
+        //   evaluate:this.Glas_pinggu
412
+        // }
413
+        // console.log('2121212',arr,params);
414
+        // this.history_Glasgow.push(arr)
415
+        // const Glalen=this.pinggr
416
+        // const historylen = this.history_Glasgow
417
+        // var pingguname =''
418
+        // for(let x=0;x<historylen.length;x++){
419
+        //   historylen[x].mark = this.Glasgow_Totalpoints
420
+        //   for(let i=0;i<Glalen.length;i++){
421
+        //     if(this.Glas_pinggu==Glalen[i].id){
422
+        //       pingguname = Glalen[i].label
423
+
424
+        //     }
425
+        //   }
426
+        //   historylen[x].evaluate = pingguname
427
+        //       // return historylen[x].evaluate
428
+        // }
429
+        return this.history_Glasgow
430
+      }
431
+    },
432
+    // 修改保存
433
+    Glas_save2(){
434
+      this.Glasadd_show = false
435
+      this.Glas_baoxiao = true
436
+      this.Glas_gzdayin = false
437
+      this.cancel_num = 1
381 438
 
439
+      const data = {}
440
+      var list = []
441
+      data['zhengyan'] = this.zhengyan_num
442
+      data['yanyu'] = this.yuyan_num
443
+      data['yundong'] = this.yundong_num
444
+      data['glasgow_input'] = this.glasgow_input
445
+      data['Glas_pinggu'] = this.Glas_pinggu
446
+      data['date'] = this.date
447
+      data['total'] = this.Glasgow_Totalpoints
448
+      list.push(data)
449
+      var params={
450
+        patient_id:this.patientID,
451
+        record_date:this.date,
452
+        is_type:11,
453
+        list:list,
454
+        id:this.dele_id
455
+      }
456
+      updateBedPatientList(params).then(response =>{
457
+          if(response.data.state == 1){
458
+            const Glasgow = response.data.data.pedFallssessment
459
+            console.log('response.data.state',response.data.data.pedFallssessment);
460
+            if(Glasgow.text !=''){
461
+              var text = JSON.parse(Glasgow.text)
462
+              for(let i in this.history_Glasgow){
463
+                if(Glasgow.id ==this.history_Glasgow[i].id){
464
+                  this.history_Glasgow[i].date = text.date
465
+                  this.history_Glasgow[i].mark = text.total
466
+                  this.history_Glasgow[i].evaluate = this.getpinggr(text.Glas_pinggu)
467
+                  this.history_Glasgow[i].glasgow_input = text.glasgow_input
468
+                }
469
+              }
382 470
             }
471
+            this.Glasadd_show = true
472
+            this.Glas_baoxiao = false
473
+            this.Glas_gzdayin = true
383 474
           }
384
-          historylen[x].evaluate = pingguname
385
-              // return historylen[x].evaluate
386
-        }
387
-      }
475
+      })
476
+      return this.history_Glasgow
388 477
     },
389 478
     // 编辑
390 479
     Glas_editor(){
@@ -392,9 +481,67 @@ export default {
392 481
       this.Glas_baoxiao=true
393 482
       this.Glasadd_show=false
394 483
       this.cancel_num =1
484
+      this.qufen = true
395 485
     },
486
+    // 选中数据
396 487
     glasgow_click(row,column, event){
397 488
       this.dele_id=row.id
489
+      // if(this.cancel_num == 1){
490
+      //   this.Glasadd_show = true
491
+      //   this.Glas_gzdayin = true
492
+      //   this.Glas_baoxiao = false
493
+      //   // this.append2 = false
494
+      // }
495
+      if(this.Glas_baoxiao == true){
496
+        this.Glasadd_show = true
497
+        this.Glas_gzdayin = true
498
+        this.Glas_baoxiao = false
499
+        this.qufen = false
500
+        // this.append2 = false
501
+      }
502
+      getPedPatientFallAssessmentById(this.dele_id).then(response =>{
503
+        if(response.data.state ==1){
504
+          const glasgow = response.data.data.fallassessment
505
+          // console.log('response.data.',response.data.data.fallassessment);
506
+          if(glasgow.text !=''){
507
+            const text =JSON.parse(glasgow.text)
508
+            for(let i in this.zhengyan){
509
+              if(text.zhengyan == this.zhengyan[i].value){
510
+                this.zhengyan[i].is_check = true
511
+                this.zhengyan[i].check = 1
512
+                this.zhengyan_num = text.zhengyan
513
+              }else{
514
+                this.zhengyan[i].is_check = false
515
+                this.zhengyan[i].check = 0
516
+              }
517
+            }
518
+            for(let i in this.yanyu){
519
+              if(text.yanyu == this.yanyu[i].value){
520
+                this.yanyu[i].is_check = true
521
+                this.yanyu[i].check = 1
522
+                this.yuyan_num = text.yanyu
523
+              }else{
524
+                this.yanyu[i].is_check = false
525
+                this.yanyu[i].check = 0
526
+              }
527
+            }
528
+            for(let i in this.yundong){
529
+              if(text.yundong == this.yundong[i].value){
530
+                this.yundong[i].is_check = true
531
+                this.yundong[i].check = 1
532
+                this.yundong_num = text.yundong
533
+              }else{
534
+                this.yundong[i].is_check = false
535
+                this.yundong[i].check = 0
536
+              }
537
+            }
538
+            this.date = text.date
539
+            this.Glas_pinggu = text.Glas_pinggu
540
+            this.glasgow_input = text.glasgow_input
541
+            this.Glasgow_Totalpoints =text.total
542
+          }
543
+        }
544
+      })
398 545
     },
399 546
     // 删除
400 547
     Glas_dele(){
@@ -410,14 +557,21 @@ export default {
410 557
       }
411 558
 
412 559
     },
560
+    // 确认删除
413 561
     deleclick(){
414
-      for(let i=0;i<this.history_Glasgow.length;i++){
415
-        if(this.dele_id==this.history_Glasgow[i].id){
416
-          this.history_Glasgow.splice(i,1)
562
+      deletePedPatientFallassment(this.dele_id).then(response =>{
563
+        if(response.data.state == 1){
564
+          for(let i=0;i<this.history_Glasgow.length;i++){
565
+            if(this.dele_id==this.history_Glasgow[i].id){
566
+              this.history_Glasgow.splice(i,1)
567
+            }
568
+          }
417 569
         }
418
-      }
570
+      })
419 571
       this.dele_dialogVisible=false
572
+      return this.history_Glasgow
420 573
     },
574
+    // 取消删除
421 575
     dele_Cancel(){
422 576
       this.append=false
423 577
       this.Glasadd_show=true
@@ -432,6 +586,7 @@ export default {
432 586
         this.Glasadd_show=true
433 587
         this.Glas_gzdayin=false
434 588
         this.Glas_baoxiao=false
589
+        
435 590
       //  return this.append
436 591
       }else{
437 592
         this.Glasadd_show=true
@@ -439,6 +594,22 @@ export default {
439 594
         this.Glas_baoxiao=false
440 595
         this.append=true
441 596
       }
597
+      for(let i in this.zhengyan){
598
+        this.zhengyan[i].is_check = false
599
+        this.zhengyan_num = 0
600
+      }
601
+      for(let i in this.yanyu){
602
+        this.yanyu[i].is_check = false
603
+        this.yuyan_num = 0
604
+      }
605
+      for(let i in this.yundong){
606
+        this.yundong[i].is_check = false
607
+        this.yundong_num = 0
608
+      }
609
+      this.Glas_pinggu = ''
610
+      this.date =this.date
611
+      this.glasgow_input = ''
612
+      this.Glasgow_Totalpoints = 0
442 613
       // console.log('2222', this.apppend);
443 614
     },
444 615
     // 打印
@@ -463,6 +634,16 @@ export default {
463 634
         return uParseTime(val, '{y}-{m}-{d}')
464 635
         }
465 636
     },
637
+    getTime2(val) {
638
+        if(val < 0){
639
+          return ""
640
+        }
641
+        if(val == ""){
642
+        return ""
643
+        }else {
644
+        return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
645
+        }
646
+    },
466 647
     // 评估护士
467 648
     getpinggr(id){
468 649
       for(let i in this.pinggr){
@@ -470,11 +651,57 @@ export default {
470 651
           return this.pinggr[i].label
471 652
         }
472 653
       }
473
-    }
654
+    },
655
+    // 数据源
656
+    getlist(){
657
+        var params = {
658
+          patient_id:this.patientID,
659
+          limit:this.limit,
660
+          is_type:11,
661
+          page:this.page,
662
+        }
663
+      getPatientBedlist(params).then(response=>{
664
+        if(response.data.state ==1){
665
+          var list = response.data.data.list
666
+          list.forEach((item) => {
667
+            if(item.text !=''){
668
+              var text = JSON.parse(item.text)
669
+                const arr ={
670
+                  id:item.id,
671
+                  date:text.date,
672
+                  mark:text.total,
673
+                  evaluate:this.getpinggr(text.Glas_pinggu),
674
+                  glasgow_input:text.glasgow_input,
675
+                  list:text
676
+                }
677
+                this.history_Glasgow.push(arr)
678
+            }
679
+          });
680
+          var total = response.data.data.total
681
+          console.log('list',list);
682
+        }
683
+      })
684
+      return this.history_OH
685
+    },
686
+    // 患者信息
687
+    tranpatient(event){
688
+      console.log('event',event);
689
+      this.Patient_info={
690
+        name:event.name,
691
+        dialysis_no:event.dialysis_no
692
+      }
693
+    },
474 694
   },
475 695
   computed:{
476
-    Glasgow_Totalpoints(){
477
-      return this.zhengyan_num*1 + this.yuyan_num*1 + this.yundong_num*1
696
+    Glasgow_Totalpoints:{
697
+      get(){
698
+        this.glasgow_zong = this.zhengyan_num*1 + this.yuyan_num*1 + this.yundong_num*1
699
+        return this.glasgow_zong
700
+      },
701
+      set(val){
702
+        return this.glasgow_zong = val
703
+      }
704
+       
478 705
     }
479 706
   }
480 707
 }

+ 190 - 38
src/xt_pages/user/evaluationtool/Muscleforce.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="patient-container">
3
-    <patient-sidebar :id="patientID" defaultActive="5-14"></patient-sidebar>
3
+    <patient-sidebar :id="patientID" defaultActive="5-14" @tran-patient="tranpatient"></patient-sidebar>
4 4
     <div>
5 5
       <div class="patient-app-container advice-container app-container">
6 6
         <div class="content_top">
@@ -15,7 +15,8 @@
15 15
               </div>
16 16
 
17 17
               <div style="flex:1" v-if="baocun_quxiao">
18
-                <el-button type="primary" @click="muscle_save" >保存</el-button>
18
+                <el-button type="primary" @click="muscle_save" v-if="qufen == false">保存</el-button>
19
+                <el-button type="primary" @click="muscle_save2" v-if="qufen == true && this.dele_id != ''">保存</el-button>
19 20
                 <el-button  @click="muscle_cancel" >取消</el-button>
20 21
               </div>
21 22
 
@@ -135,12 +136,12 @@
135 136
             <div style="width:100%;margin-top: 20px;">
136 137
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
137 138
               <div style="margin-top: 20px;font-size: 16px;">
138
-                <span>患者姓名:</span>
139
-                <span>透析号:</span>
140
-                <span>评估日期:{{ date }}</span>
141
-                <span>评估护士:{{ getpinggr(muscle_pinggu) }}</span>
142
-                <span>总分:{{ Mus_Totalpoints }}</span>
143
-                <span>打印时间{{ dayintime }}</span>
139
+                <span>患者姓名:{{ Patient_info.name }}</span>&nbsp;&nbsp;
140
+                <span>透析号:{{ Patient_info.dialysis_no }}</span>&nbsp;&nbsp;
141
+                <span>评估日期:{{ date }}</span>&nbsp;&nbsp;
142
+                <span>评估护士:{{ getpinggr(muscle_pinggu) }}</span>&nbsp;&nbsp;
143
+                <span>总分:{{ Mus_Totalpoints }}</span>&nbsp;&nbsp;
144
+                <span>打印时间:{{ dayintime }}</span>
144 145
               </div>
145 146
               <table class="tables" border="1" style="width: 100%;border-collapse: collapse;font-size: 16px;">
146 147
                 <thead>
@@ -190,6 +191,7 @@
190 191
 import PatientSidebar from '../components/PatientSidebar.vue'
191 192
 import { uParseTime } from '@/utils/tools'
192 193
 import print from 'print-js'
194
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
193 195
 export default {
194 196
   components:{
195 197
     PatientSidebar
@@ -215,24 +217,34 @@ export default {
215 217
         {title:'4级',label:'能在一般的外加阻力下作运动,但力量较正常弱',value:4,is_check:false,check:0},
216 218
         {title:'5级',label:' 正常肌力',value:5,is_check:false,check:0},
217 219
       ],
218
-      history_muscle:[{id:'001',date:'2023-9-27',mark:'',evaluate:''}],
220
+      history_muscle:[],
219 221
       pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
220 222
       append:false,
221 223
       add_open:1,
222 224
       muscle_show:true,
223 225
       baocun_quxiao:false,
224 226
       muscle_gsdayin:false,
225
-      cancel_num:0,
227
+      cancel_num:0,//是否点击右侧
226 228
       open_print:false,
227 229
       dele_id:'',
228 230
       dele_dialogVisible:false,
229 231
       content:"",
230 232
       text:"",
231 233
       date:this.getTime(new Date()),
232
-      dayintime:this.getTime(new Date())
234
+      dayintime:this.getTime2(new Date()),
235
+      limit:10,
236
+      page:1,
237
+      Patient_info:{name:'',dialysis_no:''},
238
+      qufen:false,
233 239
     }
234 240
   },
241
+  created(){
242
+    const id = this.$route.params && this.$route.params.id
243
+    this.patientID = parseInt(id)
244
+    this.getlist()
245
+  },
235 246
   methods:{
247
+    // 选择
236 248
     handleCheckedCitiesChange(item){
237 249
       for(let i in this.shuju){
238 250
         if(item.label==this.shuju[i].label){
@@ -257,6 +269,7 @@ export default {
257 269
         this.append=true
258 270
         this.baocun_quxiao=true
259 271
         this.muscle_show =false
272
+        this.qufen =false
260 273
       }else{
261 274
         this.append = false
262 275
       }
@@ -271,37 +284,111 @@ export default {
271 284
         this.muscle_gsdayin=true
272 285
         this.cancel_num=1
273 286
 
287
+        const data = {}
288
+        var list = []
289
+        data['Mus_Totalpoints'] = this.Mus_Totalpoints
290
+        data['content'] = this.content
291
+        data['total'] = this.Mus_Totalpoints
292
+        data['date'] = this.date
293
+        data['muscle_pinggu'] = this.muscle_pinggu
294
+        list.push(data)
274 295
         var params={
275
-          shuju:this.Mus_Totalpoints,
276
-          Mus_Totalpoints:this.Mus_Totalpoints,
277
-          content:this.content,
278
-          date:this.date,
279
-          muscle_pinggu:this.muscle_pinggu,
280
-        }
281
-        const arr={
282
-          id:'002',
283
-          date:this.date,
284
-          mark:this.Mus_Totalpoints,
285
-          evaluate:this.muscle_pinggu
296
+          patient_id:this.patientID,
297
+          record_date:this.date,
298
+          is_type:12,
299
+          list:list,
286 300
         }
287
-        console.log('44444',params);
288
-        this.history_muscle.push(arr)
289
-        var musclelen=this.history_muscle
290
-        var musclename =''
291
-        for(let i=0;i<musclelen.length;i++){
292
-          musclelen[i].mark = this.Mus_Totalpoints
293
-          for(let y=0;y<this.pinggr.length;y++){
294
-            if(this.muscle_pinggu==this.pinggr[y].id){
295
-              musclename = this.pinggr[y].label
301
+        savePatientHpressuresore(params).then(response =>{
302
+          if(response.data.state == 1){
303
+            console.log('response',response.data.data);
304
+            const muscle = response.data.data.pedFallssessment
305
+            if(muscle.text !=''){
306
+              const text = JSON.parse(muscle.text)
307
+              const arr={
308
+                id:muscle.id,
309
+                date:text.date,
310
+                mark:text.total,
311
+                evaluate:this.getpinggr(text.muscle_pinggu)
312
+              }
313
+              this.history_muscle.push(arr)
296 314
             }
315
+            this.$message({message:'保存成功',type:'success'})
297 316
           }
298
-          musclelen[i].evaluate = musclename
299
-        }
317
+        })
318
+        return this.history_muscle
300 319
       }
301 320
     },
302
-    // 选中右侧删除项
321
+    // 修改保存
322
+    muscle_save2(){
323
+      this.muscle_show=true
324
+      this.baocun_quxiao=false
325
+      this.muscle_gsdayin=true
326
+      this.cancel_num=1
327
+      const data = {}
328
+      var list = []
329
+      data['Mus_Totalpoints'] = this.Mus_Totalpoints
330
+      data['content'] = this.content
331
+      data['total'] = this.Mus_Totalpoints
332
+      data['date'] = this.date
333
+      data['muscle_pinggu'] = this.muscle_pinggu
334
+      list.push(data)
335
+      var params={
336
+        patient_id:this.patientID,
337
+        record_date:this.date,
338
+        is_type:12,
339
+        list:list,
340
+        id:this.dele_id
341
+      }
342
+      updateBedPatientList(params).then(response => {
343
+        if(response.data.state == 1){
344
+          const xiugai = response.data.data.pedFallssessment
345
+          if(xiugai.text !=''){
346
+            const text = JSON.parse(xiugai.text)
347
+            for(let i in this.history_muscle){
348
+              if(xiugai.id == this.history_muscle[i].id){
349
+                this.history_muscle[i].id =xiugai.id
350
+                this.history_muscle[i].date = text.date
351
+                this.history_muscle[i].mark = text.total
352
+                this.history_muscle[i].evaluate = this.getpinggr(text.muscle_pinggu)
353
+                this.history_muscle[i].content = text.content
354
+              }
355
+            }
356
+            
357
+          }
358
+        }
359
+      })
360
+      return this.history_muscle
361
+    },
362
+    // 选中右侧数据
303 363
     Muscle_click(row,column, event){
304 364
       this.dele_id=row.id
365
+      this.muscle_show=true
366
+      this.baocun_quxiao=false
367
+      this.muscle_gsdayin=true
368
+      this.qufen = true
369
+      getPedPatientFallAssessmentById(row.id).then(response =>{
370
+        if(response.data.state == 1){
371
+          console.log('111111111',response.data.data.fallassessment); 
372
+          const muscle = response.data.data.fallassessment
373
+          if(muscle.text !=''){
374
+            const text = JSON.parse(muscle.text)
375
+            for(let i in this.shuju){
376
+              if(text.Mus_Totalpoints == this.shuju[i].value){
377
+                this.shuju[i].is_check =true
378
+                this.shuju[i].check = 1
379
+              }else{
380
+                this.shuju[i].is_check =false
381
+                this.shuju[i].check = 0
382
+              }
383
+            }
384
+            this.Mus_Totalpoints = text.total
385
+            this.content = text.content
386
+            this.date = text.date
387
+            this.muscle_pinggu = text.muscle_pinggu 
388
+          }
389
+          
390
+        }
391
+      })
305 392
     },
306 393
     // 删除
307 394
     muscle_dele(){
@@ -316,14 +403,29 @@ export default {
316 403
       }
317 404
 
318 405
     },
406
+    // 删除确认
319 407
     deleclick(){
320
-      for(let i=0;i<this.history_muscle.length;i++){
321
-        if(this.dele_id==this.history_muscle[i].id){
322
-          this.history_muscle.splice(i,1)
408
+      deletePedPatientFallassment(this.dele_id).then(response =>{
409
+        if(response.data.state == 1){
410
+          for(let i=0;i<this.history_muscle.length;i++){
411
+            if(this.dele_id==this.history_muscle[i].id){
412
+              this.history_muscle.splice(i,1)
413
+            }
414
+          }
323 415
         }
324
-      }
416
+      })
325 417
       this.dele_dialogVisible=false
418
+      for(let i in this.shuju){
419
+        this.shuju[i].is_check = false
420
+        this.shuju[i].check = 0
421
+      }
422
+      this.content = ''
423
+      this.Mus_Totalpoints = ''
424
+      this.muscle_pinggu =''
425
+      this.date = this.date
426
+      return this.history_muscle
326 427
     },
428
+    // 取消删除
327 429
     dele_Cancel(){
328 430
       this.dele_dialogVisible=false
329 431
       this.muscle_gsdayin=true
@@ -351,6 +453,7 @@ export default {
351 453
       this.baocun_quxiao=true
352 454
       this.muscle_gsdayin=false
353 455
       this.muscle_show=false
456
+      this.qufen = true
354 457
       this.cancel_num=1
355 458
     },
356 459
     // 打印
@@ -375,6 +478,16 @@ export default {
375 478
         return uParseTime(val, '{y}-{m}-{d}')
376 479
         }
377 480
     },
481
+    getTime2(val) {
482
+        if(val < 0){
483
+          return ""
484
+        }
485
+        if(val == ""){
486
+        return ""
487
+        }else {
488
+        return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
489
+        }
490
+    },
378 491
     // 评估护士
379 492
     getpinggr(id){
380 493
       for(let i in this.pinggr){
@@ -382,6 +495,45 @@ export default {
382 495
           return this.pinggr[i].label
383 496
         }
384 497
       }
498
+    },
499
+    // 患者信息
500
+    tranpatient(event){
501
+      console.log('event',event);
502
+      this.Patient_info={
503
+        name:event.name,
504
+        dialysis_no:event.dialysis_no
505
+      }
506
+    },
507
+    // 数据源
508
+    getlist(){
509
+
510
+      var params = {
511
+        patient_id:this.patientID,
512
+        limit:this.limit,
513
+        is_type:12,
514
+        page:this.page,
515
+      }
516
+      getPatientBedlist(params).then(response =>{
517
+        if(response.data.state ==1){
518
+          const list = response.data.data.list
519
+          console.log('response.data.data.list12',list);
520
+          list.forEach(item => {
521
+            if(item.text != ''){
522
+              const text = JSON.parse(item.text)
523
+              const arr={
524
+                id:item.id,
525
+                date:text.date,
526
+                mark:text.total,
527
+                evaluate:this.getpinggr(text.muscle_pinggu),
528
+                content: text.content,
529
+                muscle_pinggu: text.muscle_pinggu
530
+              }
531
+              this.history_muscle.push(arr)
532
+            }
533
+            
534
+          });
535
+        }
536
+      })
385 537
     }
386 538
   }
387 539
 }

+ 278 - 67
src/xt_pages/user/evaluationtool/OHpressuresore.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <!-- OH压疮评估 -->
2 2
 <template>
3 3
   <div class="patient-container">
4
-    <patient-sidebar :id="patientID" defaultActive="5-4"></patient-sidebar>
4
+    <patient-sidebar :id="patientID" defaultActive="5-4" @tran-patient="tranpatient"></patient-sidebar>
5 5
     <div>
6 6
       <div class="patient-app-container advice-container app-container">
7 7
         <div class="content_top">
@@ -16,7 +16,8 @@
16 16
               </div>
17 17
 
18 18
               <div style="flex:1" v-if="baocun_open==1">
19
-                <el-button type="primary" @click="save_OH" >保存</el-button>
19
+                <el-button type="primary" @click="save_OH" v-if="this.qufen ==false">保存</el-button>
20
+                <el-button type="primary" @click="updateBedPatientList" v-if="this.qufen == true && this.dele_id !=''">保存1</el-button>
20 21
                 <el-button  @click="cancel_OH" >取消</el-button>
21 22
               </div>
22 23
 
@@ -37,7 +38,7 @@
37 38
                               <td>
38 39
                                 <div class="jiange">
39 40
                                     <span v-for="item in tiwei" class="rightjiange" @change="handleCheckedCitiesChange($event,item)">
40
-                                        <label><input type="checkbox" class="checkbox1" name="ball" v-model="item.is_check" :value="item.value"/>&nbsp;{{ item.label }}</label>
41
+                                        <label><input type="checkbox" class="checkbox1" v-model="item.is_check" :value="item.value"/>&nbsp;{{ item.label }}</label>
41 42
                                     </span>
42 43
                                 </div>
43 44
                               </td>
@@ -47,7 +48,7 @@
47 48
                               <td>
48 49
                                   <div class="jiange">
49 50
                                       <span v-for="item in bingli" class="rightjiange" @change="bingligu(item)">
50
-                                          <label><input type="checkbox" class="checkbox2" name="ball" v-model="item.is_check" :value="item.value" />&nbsp;{{ item.label }}</label>
51
+                                          <label><input type="checkbox" class="checkbox2" v-model="item.is_check" :value="item.value" />&nbsp;{{ item.label }}</label>
51 52
                                       </span>
52 53
                                   </div>
53 54
                               </td>
@@ -114,6 +115,7 @@
114 115
                   </el-select>
115 116
                 </div>
116 117
               </div>
118
+              <div id="ctrl-xgtlpic-mask2" class="readonly" data-text="图片操作的遮罩层" v-show="append2 == false"></div>
117 119
               <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
118 120
             </div>
119 121
 
@@ -179,8 +181,8 @@
179 181
             <div style="width:100%;margin-top: 20px;">
180 182
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
181 183
               <div style="margin-top: 20px;font-size: 16px;">
182
-                <span>患者姓名:</span>
183
-                <span>透析号:</span>
184
+                <span>患者姓名:{{ Patient_info.name }}</span>
185
+                <span>透析号:{{ Patient_info.dialysis_no }}</span>
184 186
                 <span>评估日期:{{ oh_date }}</span>
185 187
                 <span>评估护士:{{ getpinggr(oh_appraiser) }}</span>
186 188
                 <span>总分:{{ Totalpoints }}</span>
@@ -292,7 +294,7 @@ export default {
292 294
       gaunjie_num:null,
293 295
       ball:'',
294 296
       input:'',
295
-      history_OH:[{id:'001',date:'2023-9-27',mark:'',evaluate:''}],
297
+      history_OH:[],
296 298
       form:[],
297 299
       appraiser:null,
298 300
       value1:'',
@@ -308,6 +310,8 @@ export default {
308 310
       checkList3:[],
309 311
 
310 312
       append:false,//控制遮罩层
313
+      append2:false,
314
+      xingai:0,
311 315
       add_open:1,//新增按钮控制条件
312 316
       baocun_open:0,//控制保存取消显示
313 317
       add_show:true,//控制新增显示
@@ -326,9 +330,20 @@ export default {
326 330
       page:1,
327 331
       total:0,
328 332
       id:0,
333
+      index:0,
334
+      OH_zong:0,
335
+      Patient_info:{name:'',dialysis_no:''},
336
+      qufen:false,
329 337
     }
330 338
   },
331 339
   methods:{
340
+    tranpatient(event){
341
+      console.log('event',event);
342
+      this.Patient_info={
343
+        name:event.name,
344
+        dialysis_no:event.dialysis_no
345
+      }
346
+    },
332 347
     //选择的总分
333 348
     handleCheckedCitiesChange(e,item){
334 349
       console.log('vvvv','bbbb',item);
@@ -408,12 +423,34 @@ export default {
408 423
     OHadd(){
409 424
       if(this.add_open==1){
410 425
         this.append=true
426
+        this.append2 = true
411 427
         this.baocun_open=1
412 428
         this.add_show =false
413 429
         this.zsgy_open= 0
430
+        this.qufen =false
414 431
       }else{
415 432
         this.append = false
433
+        this.append2 = false
416 434
       }
435
+      // for(let i in this.tiwei){
436
+      //   this.tiwei[i].is_check = false,
437
+      //   this.tiwei[i].check = 0
438
+      // }
439
+      // for(let i in this.bingli){
440
+      //   this.bingli[i].is_check = false,
441
+      //   this.bingli[i].check = 0
442
+      // }
443
+      // for(let i in this.edema){
444
+      //   this.edema[i].is_check = false,
445
+      //   this.edema[i].check = 0
446
+      // }
447
+      // for(let i in this.guanjie){
448
+      //   this.guanjie[i].is_check = false,
449
+      //   this.guanjie[i].check = 0
450
+      // }
451
+      // this.Totalpoints=0
452
+      // this.oh_huli = ''
453
+      // this.oh_appraiser = null
417 454
     },
418 455
     //保存
419 456
     save_OH(){
@@ -443,13 +480,24 @@ export default {
443 480
           list:list,
444 481
         }
445 482
      
446
-      // console.log("data",data)
447
-      savePatientHpressuresore(params).then(response=>{
448
-         if(response.data.state ==1){
449
-
450
-         }
451
-      })
452
-        // console.log('params-----',params);
483
+        // console.log("data",data)
484
+        savePatientHpressuresore(params).then(response=>{
485
+          if(response.data.state ==1){
486
+            console.log('response.data.state',response.data);
487
+            const item = response.data.data.pedFallssessment
488
+            var oh_text = JSON.parse(item.text)
489
+            // console.log('oh_data.text',JSON.parse(item.text));
490
+              const arr ={
491
+                id:item.id,
492
+                date:this.getTime(item.record_date),
493
+                mark:oh_text.total,
494
+                evaluate:this.getpinggr(oh_text.oh_appraiser),
495
+                list:oh_text
496
+              }
497
+              this.history_OH.push(arr)
498
+          }
499
+        })
500
+        return this.history_OH
453 501
       }
454 502
     },
455 503
     //编辑
@@ -458,19 +506,113 @@ export default {
458 506
       this.zsgy_open=0
459 507
       this.baocun_open=1
460 508
       this.cancel_num=1
461
-      getPedPatientFallAssessmentById(this.id).then(response=>{
462
-        if(response.data.state ==1){
463
-
464
-        }
465
-      })
509
+      this.append2 = true
510
+      this.qufen =true
466 511
     },
467
-    // 选择需要删除的记录
512
+    // 选中数据
468 513
     dele_click(row, column, event){
514
+      
469 515
       this.dele_id=row.id
516
+      console.log('row',this.dele_id);
517
+      if(this.baocun_open == 1){
518
+        this.add_show = true
519
+        this.zsgy_open = 1
520
+        this.baocun_open = 0
521
+        this.append2 = false
522
+      }
523
+      getPedPatientFallAssessmentById(this.dele_id).then(response=>{
524
+        if(response.data.state ==1){
525
+          const oheditor = response.data.data.fallassessment
526
+          var editor  =JSON.parse(oheditor.text)
527
+          if(oheditor.id == row.id){
528
+            for(let i in this.tiwei){
529
+              if(editor.tiwei == this.tiwei[i].value){
530
+                this.tiwei[i].is_check = true
531
+                this.tiwei[i].check = 1
532
+                this.tiwei_num = editor.tiwei
533
+              }else{
534
+                this.tiwei[i].is_check = false
535
+                this.tiwei[i].check = 0
536
+                // this.tiwei_num = 0
537
+              }
538
+            }
539
+            for(let i in this.bingli){
540
+              if(editor.bingli == this.bingli[i].value){
541
+                this.bingli[i].is_check = true
542
+                this.bingli[i].check = 1
543
+                this.bingli_num = editor.bingli
544
+              }else{
545
+                this.bingli[i].is_check = false
546
+                this.bingli[i].check = 0
547
+                // this.bingli_num = 0
548
+              }
549
+              
550
+            }
551
+            for(let i in this.edema){
552
+              if(editor.edema == this.edema[i].value){
553
+                this.edema[i].is_check = true
554
+                this.edema[i].check = 1
555
+                this.edema_num = editor.edema
556
+              }else{
557
+                this.edema[i].is_check = false
558
+                this.edema[i].check = 0
559
+                // this.edema_num = 0
560
+              }
561
+            }
562
+            for(let i in this.guanjie){
563
+              if(editor.guanjie == this.guanjie[i].value){
564
+                this.guanjie[i].is_check = true
565
+                this.guanjie[i].check = 1
566
+                this.gaunjie_num = editor.guanjie
567
+              }else{
568
+                this.guanjie[i].is_check = false
569
+                this.guanjie[i].check = 0
570
+                // this.gaunjie_num = 0
571
+              }
572
+            }
573
+            this.oh_appraiser = editor.oh_appraiser
574
+            this.oh_huli = editor.oh_huli
575
+            this.oh_date = editor.record_date
576
+            this.Totalpoints = editor.total
577
+          }
578
+          console.log('data',this.Totalpoints,oheditor);
579
+        }
580
+      })
581
+
582
+      
583
+      // for(let i in this.tiwei){
584
+      //   if(row.list.tiwei == this.tiwei[i].value){
585
+      //     this.tiwei[i].is_check = true
586
+      //     this.tiwei[i].check = 1
587
+      //   }
588
+      // }
589
+      // for(let i in this.bingli){
590
+      //   if(row.list.bingli == this.bingli[i].value){
591
+      //     this.bingli[i].is_check = true
592
+      //     this.bingli[i].check = 1
593
+      //   }
594
+      // }
595
+      // for(let i in this.edema){
596
+      //   if(row.list.edema == this.edema[i].value){
597
+      //     this.edema[i].is_check = true
598
+      //     this.edema[i].check = 1
599
+      //   }
600
+      // }
601
+      // for(let i in this.guanjie){
602
+      //   if(row.list.guanjie == this.guanjie[i].value){
603
+      //     this.guanjie[i].is_check = true
604
+      //     this.guanjie[i].check = 1
605
+      //   }
606
+      // }
607
+      // this.oh_appraiser = row.list.oh_appraiser
608
+      // this.oh_huli = row.list.oh_huli
609
+      // this.oh_date = row.list.record_date
610
+      // this.Totalpoints = row.mark
611
+      // console.log('Totalpoints',this.Totalpoints);
470 612
       //row.id 为 选中当前行的id
471
-      deletePedPatientFallassment(row.id).then(response=>{
613
+      // deletePedPatientFallassment(row.id).then(response=>{
472 614
 
473
-      })
615
+      // })
474 616
     },
475 617
     //删除
476 618
     dele_OH(){
@@ -483,13 +625,29 @@ export default {
483 625
       }
484 626
 
485 627
     },
628
+    // 删除确认
486 629
     deleclick(){
487
-      for(let i=0;i<this.history_OH.length;i++){
488
-        if(this.dele_id==this.history_OH[i].id){
489
-          this.history_OH.splice(i,1)
630
+      deletePedPatientFallassment(this.dele_id).then(response=>{
631
+        if(response.data.state == 1){
632
+          this.$message({
633
+            message:'删除成功',
634
+            offset:150
635
+          })
636
+          console.log('1111111',response.data);
637
+          for(let i in this.history_OH){
638
+            if(this.dele_id == this.history_OH[i].id){
639
+              this.history_OH.splice(i,1)
640
+            }
641
+          }
490 642
         }
491
-      }
643
+      })
644
+      // for(let i=0;i<this.history_OH.length;i++){
645
+      //   if(this.dele_id==this.history_OH[i].id){
646
+      //     this.history_OH.splice(i,1)
647
+      //   }
648
+      // }
492 649
       this.dele_dialogVisible=false
650
+      return this.history_OH
493 651
     },
494 652
     //打印
495 653
     print_OH(){
@@ -559,58 +717,99 @@ export default {
559 717
 
560 718
           this.nurseList =nurseList
561 719
         }
562
-    })
563
-   },
564
-   getlist(){
565
-      var params = {
720
+      })
721
+    },
722
+    // 数据源
723
+    getlist(){
724
+        var params = {
725
+          patient_id:this.patientID,
726
+          limit:this.limit,
727
+          is_type:2,
728
+          page:this.page,
729
+        }
730
+      getPatientBedlist(params).then(response=>{
731
+        if(response.data.state ==1){
732
+          var list = response.data.data.list
733
+          list.forEach((item) => {
734
+
735
+            var oh_text = JSON.parse(item.text)
736
+            // console.log('oh_data.text',JSON.parse(item.text));
737
+              const arr ={
738
+                id:item.id,
739
+                date:this.getTime(item.record_date),
740
+                mark:oh_text.total,
741
+                evaluate:this.getpinggr(oh_text.oh_appraiser),
742
+                list:oh_text
743
+              }
744
+              this.history_OH.push(arr)
745
+          });
746
+          var total = response.data.data.total
747
+          console.log('list',list);
748
+        }
749
+      })
750
+      return this.history_OH
751
+    },
752
+    // 修改保存
753
+    updateBedPatientList(){
754
+      this.baocun_open=0
755
+      this.add_show=true
756
+      this.zsgy_open=1
757
+      this.cancel_num=1
758
+      const data = {}
759
+      var list =[]
760
+      data['patient_id'] =  this.patientID
761
+      data['tiwei'] = this.tiwei_num
762
+      data['bingli'] = this.bingli_num
763
+      data['edema'] = this.edema_num
764
+      data['guanjie'] = this.gaunjie_num
765
+      data['oh_huli'] = this.oh_huli
766
+      data['record_date'] = this.oh_date
767
+      data['oh_appraiser'] = this.oh_appraiser
768
+      data['total'] = this.Totalpoints
769
+      list.push(data)
770
+      var params={
566 771
         patient_id:this.patientID,
567
-        limit:this.limit,
568
-        page:this.page,
772
+        record_date:this.oh_date,
773
+        is_type:2,
774
+        list:list,
775
+        id:this.dele_id,//选中当前行的id
569 776
       }
570
-    getPatientBedlist(params).then(response=>{
571
-       if(response.data.state ==1){
572
-         var list = response.data.data.list
573
-         var total = response.data.data.total
574
-       }
575
-    })
576
-   },
577
-   updateBedPatientList(){
578
-    const data = {}
579
-    var list =[]
580
-    data['patient_id'] =  this.patientID
581
-    data['tiwei'] = this.tiwei_num
582
-    data['bingli'] = this.bingli_num
583
-    data['edema'] = this.edema_num
584
-    data['guanjie'] = this.gaunjie_num
585
-    data['oh_huli'] = this.oh_huli
586
-    data['record_date'] = this.oh_date
587
-    data['oh_appraiser'] = this.oh_appraiser
588
-    data['total'] = this.Totalpoints
589
-    list.push(data)
590
-    var params={
591
-      patient_id:this.patientID,
592
-      record_date:this.oh_date,
593
-      is_type:2,
594
-      list:list,
595
-      id:this.id,//选中当前行的id
777
+      updateBedPatientList(params).then(response=>{
778
+        if(response.data.state ==1){
779
+          var pedFallssessment =  response.data.data.pedFallssessment
780
+          var text = JSON.parse(pedFallssessment.text)
781
+          for(let i in this.history_OH){
782
+            if(pedFallssessment.id == this.history_OH[i].id){
783
+              this.history_OH[i].id = pedFallssessment.id
784
+              this.history_OH[i].date = text.record_date
785
+              this.history_OH[i].mark = text.total
786
+              this.history_OH[i].evaluate = this.getpinggr(text.oh_appraiser)
787
+              this.history_OH[i].list = text
788
+            }
789
+          }
790
+          console.log('gggggg',pedFallssessment);
791
+          this.$message.success("保存成功")
792
+        }
793
+      })
596 794
     }
597
-    updateBedPatientList(params).then(response=>{
598
-      if(response.data.state ==1){
599
-        var pedFallssessment =  response.data.data.pedFallssessment
600
-        this.$message.success("保存成功")
601
-      }
602
-    })
603
-   }
604 795
 
605 796
   },
606 797
   computed:{
607
-    Totalpoints(){
608
-      return this.gaunjie_num*1 + this.edema_num*1 + this.bingli_num*1 + this.tiwei_num*1
798
+    Totalpoints:{
799
+      get(){
800
+        this.OH_zong = this.gaunjie_num*1 + this.edema_num*1 + this.bingli_num*1 + this.tiwei_num*1
801
+        return this.OH_zong
802
+      },
803
+      set(val){
804
+        return this.OH_zong = val
805
+      }
806
+      
609 807
     }
610 808
   },
611 809
  created(){
612 810
   const id = this.$route.params && this.$route.params.id
613 811
   this.patientID = parseInt(id)
812
+  console.log('this.$route.query.patient_id',this.patientID);
614 813
   this.getlist()
615 814
  }
616 815
 }
@@ -667,6 +866,9 @@ export default {
667 866
 #ctrl-xgtlpic-mask.readonly {
668 867
     z-index: 2000;
669 868
 }
869
+#ctrl-xgtlpic-mask2.readonly {
870
+    z-index: 2000;
871
+}
670 872
 #ctrl-xgtlpic-mask {
671 873
     width: 85%;
672 874
     height: 100%;
@@ -676,6 +878,15 @@ export default {
676 878
     opacity: 0;
677 879
     z-index: -1;
678 880
 }
881
+#ctrl-xgtlpic-mask2 {
882
+    width: 50%;
883
+    height: 100%;
884
+    position: absolute;
885
+    left: 196px;
886
+    top: 131px;
887
+    opacity: 0;
888
+    z-index: -1;
889
+}
679 890
 .tables {
680 891
   thead th{
681 892
     // background: #0077ff9f;

+ 206 - 96
src/xt_pages/user/evaluationtool/RassAssessment.vue 查看文件

@@ -1,16 +1,15 @@
1 1
 <template>
2 2
     <div class="patient-container">
3
-        <patient-sidebar :id="patientID" defaultActive="5-7"></patient-sidebar>
3
+        <patient-sidebar :id="patientID" defaultActive="5-7" @tran-patient="tranpatient"></patient-sidebar>
4 4
         <div>
5 5
             <div class="patient-app-container advice-container app-container">
6 6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
7 7
                     <div style="font-size: 20px;">RASS评估表</div>
8 8
                     <div>
9
-                        <el-button @click="RASShistory">历史评分</el-button>
9
+                      <el-button @click="RASShistory">历史评分</el-button>
10 10
                     </div>
11 11
                 </div>
12 12
 
13
-
14 13
                 <div class='content_top'>
15 14
                     <div style="width:29%">
16 15
                       <table class="table" border="1" style="width: 100%;">
@@ -48,7 +47,7 @@
48 47
                           <tr >
49 48
                               <td>
50 49
                                 <table class="table" border="1" style="width: 100%;border-collapse: collapse;">
51
-                                  <tr class="bg_color" v-for="(item,index) in RASS" :key="index" 
50
+                                  <tr class="bg_color" v-for="(item,index) in RASS" :key="index"
52 51
                                   :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
53 52
                                     <td>
54 53
                                       <div class="rightjiange" style="position: relative;">
@@ -108,13 +107,13 @@
108 107
 
109 108
                         <div class="bottoms">
110 109
                             <span>评估人:</span>
111
-                            <el-select v-model="rass_appraiser" placeholder="请选择" >
110
+                            <el-select v-model="rass_appraiser" placeholder="请选择" style="width:150px;">
112 111
                                 <el-option
113 112
                                 v-for="item in rassoptions"
114
-                                :key="item.value"
115
-                                :label="item.label"
116
-                                :value="item.value"
117
-                                style="width:150px;">
113
+                                :key="item.admin_user_id"
114
+                                :label="item.user_name"
115
+                                :value="item.admin_user_id"
116
+                                >
118 117
                                 </el-option>
119 118
                             </el-select>
120 119
                         </div>
@@ -280,7 +279,7 @@
280 279
                                           <span>患者状态:</span>
281 280
                                           <el-input v-model="zhuangtai" placeholder="请输入内容" @change='zhuangt_click' style="width: 150px;"></el-input>
282 281
                                       </div>
283
-                                  </div> 
282
+                                  </div>
284 283
                                 </div>
285 284
                             </div>
286 285
                             <div style="margin:0px 0px 10px 10%;" v-if="RassGJradio!=6">
@@ -392,7 +391,7 @@
392 391
                                         </span>
393 392
                                         <div style="flex:1;display: flex;flex-wrap: wrap;padding:4px;">
394 393
                                           <span class="ttbwzz-type-a" v-for="(item,index) in chuzhifs" :key="index">
395
-                                            <label for="">
394
+                                            <label>
396 395
                                                 <input type="checkbox" :value="item.label" v-model="item.is_check" @click="chuzhifsclick(item)" />&nbsp;{{ item.label }}
397 396
                                             </label>
398 397
                                           </span>
@@ -430,13 +429,13 @@
430 429
 
431 430
                         <div class="bottoms">
432 431
                             <span>评估人:</span>
433
-                            <el-select v-model="teng_appraiser" placeholder="请选择" >
432
+                            <el-select v-model="teng_appraiser" placeholder="请选择" style="width:150px;">
434 433
                                 <el-option
435
-                                v-for="item in tengoptions"
436
-                                :key="item.value"
437
-                                :label="item.label"
438
-                                :value="item.value"
439
-                                style="width:150px;">
434
+                                v-for="item in rassoptions"
435
+                                :key="item.admin_user_id"
436
+                                :label="item.user_name"
437
+                                :value="item.admin_user_id"
438
+                                >
440 439
                                 </el-option>
441 440
                             </el-select>
442 441
                         </div>
@@ -455,6 +454,7 @@
455 454
 import PatientSidebar from '../components/PatientSidebar.vue'
456 455
 import behavior from './behavior.vue'
457 456
 import { uParseTime } from '@/utils/tools'
457
+import {savePatientHpressuresore} from '@/api/fallassement'
458 458
 export default {
459 459
     components:{
460 460
       PatientSidebar,
@@ -474,10 +474,13 @@ export default {
474 474
             behav_val:null,
475 475
             shijue_val:null,
476 476
             NRS_val:null,
477
+            Losradio:'',
478
+            rassradio:'',
477 479
             RAssradio:'',
478 480
             RAssdate:this.getTime(new Date()),
479 481
             rass_appraiser:'',
480
-            rassoptions:[],
482
+            Rass_num:0,//控制是rass还是LOS
483
+            rassoptions:[{admin_user_id:1,user_name:'寒千落'},{admin_user_id:2,user_name:'千仞雪'},{admin_user_id:3,user_name:'千亦雪'}],
481 484
 
482 485
             qita_val:'',
483 486
             qita_textarea:'',
@@ -501,6 +504,13 @@ export default {
501 504
             tengdate:this.getTime(new Date()),
502 505
             teng_appraiser:'',
503 506
             tengoptions:[],
507
+            xingzhishow:[],//疼痛性质选中
508
+            zzshow:[],//疼痛症状选中
509
+            huodshow:[],//活动
510
+            buliangshow:[],//不良
511
+            chuzfshow:[],//处置方式
512
+            hulishow:[],//护理处置
513
+            Patient_info:{name:'',dialysis_no:''},
504 514
             LOS:[{title:'0分', label:'清醒',value:0},{title:'1分', label:'有些昏昏欲睡,但容易唤醒',value:1},
505 515
                   {title:'2分', label:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态',value:2},
506 516
                   {title:'3分', label:'无意识,无法唤醒',value:3},{title:'S分', label:'正常意识,容易唤醒',value:'s'}
@@ -525,35 +535,36 @@ export default {
525 535
                       {imgs:require('@/assets/evaluate/e.png'),text:'疼痛较严重',value:8},{imgs:require('@/assets/evaluate/f.png'),text:'剧烈疼痛',value:10},
526 536
                     ],
527 537
 
528
-            xingzhi:[{is_check:false,check:0,label:'宫缩痛'},{is_check:false,check:0,label:'持续固定痛'},{is_check:false,check:0,label:'跳痛'},
529
-                     {is_check:false,check:0,label:'刺痛'},{is_check:false,check:0,label:'刀割痛'},{is_check:false,check:0,label:'锐痛'},
530
-                     {is_check:false,check:0,label:'痉挛痛'},{is_check:false,check:0,label:'绞痛'},{is_check:false,check:0,label:'热灼痛'},
531
-                     {is_check:false,check:0,label:'撕裂痛'},{is_check:false,check:0,label:'钻顶样痛'},{is_check:false,check:0,label:'触痛'},
532
-                     {is_check:false,check:0,label:'酸痛'},{is_check:false,check:0,label:'闷痛'},{is_check:false,check:0,label:'胀痛'},
533
-                     {is_check:false,check:0,label:'牵拉样痛'},{is_check:false,check:0,label:'游走痛'},{is_check:false,check:0,label:'难以描述'}
538
+            xingzhi:[{id:1,is_check:false,check:0,label:'宫缩痛'},{id:2,is_check:false,check:0,label:'持续固定痛'},{id:3,is_check:false,check:0,label:'跳痛'},
539
+                     {id:4,is_check:false,check:0,label:'刺痛'},{id:5,is_check:false,check:0,label:'刀割痛'},{id:6,is_check:false,check:0,label:'锐痛'},
540
+                     {id:7,is_check:false,check:0,label:'痉挛痛'},{id:8,is_check:false,check:0,label:'绞痛'},{id:9,is_check:false,check:0,label:'热灼痛'},
541
+                     {id:10,is_check:false,check:0,label:'撕裂痛'},{id:11,is_check:false,check:0,label:'钻顶样痛'},{id:12,is_check:false,check:0,label:'触痛'},
542
+                     {id:13,is_check:false,check:0,label:'酸痛'},{id:14,is_check:false,check:0,label:'闷痛'},{id:15,is_check:false,check:0,label:'胀痛'},
543
+                     {id:16,is_check:false,check:0,label:'牵拉样痛'},{id:17,is_check:false,check:0,label:'游走痛'},{id:18,is_check:false,check:0,label:'难以描述'}
534 544
                     ],
535 545
 
536
-            tengtzz:[{is_check:false,check:0,label:'无'},{is_check:false,check:0,label:'头晕'},{is_check:false,check:0,label:'恶心、呕吐'},
537
-                  {is_check:false,check:0,label:'疲软乏力'},{is_check:false,check:0,label:'气促、心慌'}],
546
+            tengtzz:[{id:1,is_check:false,check:0,label:'无'},{id:2,is_check:false,check:0,label:'头晕'},{id:3,is_check:false,check:0,label:'恶心、呕吐'},
547
+                  {id:4,is_check:false,check:0,label:'疲软乏力'},{id:5,is_check:false,check:0,label:'气促、心慌'}],
548
+
549
+            huodongyx:[{id:1,is_check:false,check:0,label:'不影响'},{id:2,is_check:false,check:0,label:'改变体位时疼痛明显'},
550
+                      {id:3,is_check:false,check:0,label:'影响睡眠'},{id:4,is_check:false,check:0,label:'影响休息'},{id:5,is_check:false,check:0,label:'影响活动'}],
551
+
552
+            zhitong:[{id:1,is_check:false,check:0,label:'恶心'},{id:2,is_check:false,check:0,label:'呕吐'},{id:3,is_check:false,check:0,label:'便秘'},
553
+                {id:4,is_check:false,check:0,label:'尿潴留'},{id:5,is_check:false,check:0,label:'皮肤瘙痒'},{id:6,is_check:false,check:0,label:'呼吸抑制'}],
538 554
 
539
-            huodongyx:[{is_check:false,check:0,label:'不影响'},{is_check:false,check:0,label:'改变体位时疼痛明显'},
540
-                      {is_check:false,check:0,label:'影响睡眠'},{is_check:false,check:0,label:'影响休息'},{is_check:false,check:0,label:'影响活动'}],
541
-            
542
-            zhitong:[{is_check:false,check:0,label:'恶心'},{is_check:false,check:0,label:'呕吐'},{is_check:false,check:0,label:'便秘'},
543
-                {is_check:false,check:0,label:'尿潴留'},{is_check:false,check:0,label:'皮肤瘙痒'},{is_check:false,check:0,label:'呼吸抑制'}],
544
-            
545
-            chuzhifs:[{is_check:false,check:0,label:'通知医生'},{is_check:false,check:0,label:'卧床休息,舒适体位摆放'},
546
-                {is_check:false,check:0,label:'保持环境安静'},{is_check:false,check:0,label:'冷敷'},{is_check:false,check:0,label:'热敷'},
547
-                {is_check:false,check:0,label:'理疗'},{is_check:false,check:0,label:'针灸'},{is_check:false,check:0,label:'拒绝治疗'},
548
-                {is_check:false,check:0,label:'入睡'},{is_check:false,check:0,label:'滴定开始'}],
549
-            
550
-            hulichuzhi:[{is_check:false,check:0,label:'遵医嘱使用'},{is_check:false,check:0,label:'静脉镇痛'},
551
-                        {is_check:false,check:0,label:'阿片类药物非自控镇痛给药'},{is_check:false,check:0,label:'硬膜外镇痛'},
552
-                      {is_check:false,check:0,label:'神经阻滞镇痛'}]
555
+            chuzhifs:[{id:1,is_check:false,check:0,label:'通知医生'},{id:2,is_check:false,check:0,label:'卧床休息,舒适体位摆放'},
556
+                {id:3,is_check:false,check:0,label:'保持环境安静'},{id:4,is_check:false,check:0,label:'冷敷'},{id:5,is_check:false,check:0,label:'热敷'},
557
+                {id:6,is_check:false,check:0,label:'理疗'},{id:7,is_check:false,check:0,label:'针灸'},{id:8,is_check:false,check:0,label:'拒绝治疗'},
558
+                {id:9,is_check:false,check:0,label:'入睡'},{id:10,is_check:false,check:0,label:'滴定开始'}],
559
+
560
+            hulichuzhi:[{id:1,is_check:false,check:0,label:'遵医嘱使用'},{id:2,is_check:false,check:0,label:'静脉镇痛'},
561
+                        {id:3,is_check:false,check:0,label:'阿片类药物非自控镇痛给药'},{id:4,is_check:false,check:0,label:'硬膜外镇痛'},
562
+                      {id:5,is_check:false,check:0,label:'神经阻滞镇痛'}]
553 563
         }
554 564
     },
555 565
     created(){
556
-        console.log('asdfasdfasdfasssdfas',this.radio);
566
+      const id = this.$route.params && this.$route.params.id
567
+      this.patientID = parseInt(id)
557 568
     },
558 569
     methods:{
559 570
       // RASS评估表
@@ -564,34 +575,51 @@ export default {
564 575
 
565 576
         for(let i=0;i<lent.length;i++){
566 577
           if(item.label == lent[i].label ){
567
-            this.RASS_Totalpoints= item.value
578
+            this.Losradio = item.value
579
+            this.RASS_Totalpoints= this.Losradio
568 580
           }
569 581
         }
570 582
         for(let y=0;y<len.length;y++){
571 583
           if(item.label == len[y].label ){
584
+            this.rassradio = item.value
572 585
             this.RASS_Totalpoints = item.value
586
+     
573 587
           }
574
-          
588
+
575 589
         }
576 590
         for(let y=0;y<len2.length;y++){
577 591
           if(item.label == len2[y].label ){
592
+            this.rassradio = item.value
578 593
             this.RASS_Totalpoints = item.value
579
-            
580 594
           }
581 595
         }
582
-        this.RAssradio = item.label
596
+        // this.RAssradio = item.label
583 597
         console.log('this.RAssradio',this.RAssradio);
584 598
       },
585 599
       // RASS评估表确认
586 600
       RASSclick(){
601
+        const data = {}
602
+        var list = []
603
+        data['date'] = this.RAssdate
604
+        data['total'] = this.RASS_Totalpoints
605
+        data['appraiser'] = this.rass_appraiser
606
+        data['rassradio'] = this.rassradio
607
+        data['Losradio'] = this.Losradio
608
+        list.push(data)
587 609
         var params={
588
-          patientID:this.patientID,
589
-          RAssradio:this.RAssradio,
590
-          RASS_Totalpoints:this.RASS_Totalpoints,
591
-          RAssdate:this.RAssdate,
592
-          rass_appraiser:this.rass_appraiser,
593
-          rassoptions:this.rassoptions,
610
+          patient_id:this.patientID,
611
+          record_date:this.RAssdate,
612
+          is_type:5,
613
+          list:list,
594 614
         }
615
+        console.log('params---',params);
616
+        savePatientHpressuresore(params).then(response =>{
617
+          if(response.data.state == 1){
618
+            const Rass = response.data.data.pedFallssessment
619
+            console.log('Rass',Rass);
620
+            this.$message({message:'保存成功',type:'success'})
621
+          }
622
+        })
595 623
       },
596 624
       // 行为学
597 625
       behav(params){
@@ -618,7 +646,7 @@ export default {
618 646
       click_NRS(val){
619 647
         this.NRS_val = val
620 648
       },
621
-     
649
+
622 650
       // 处理疼痛后得分
623 651
       chulhuo_click(e){
624 652
         console.log(1111,e,this.chulihou);
@@ -661,26 +689,30 @@ export default {
661 689
             if(item.check == 0){
662 690
               this.xingzhi[i].is_check =true
663 691
               this.xingzhi[i].check = 1
664
-              console.log('tttt',this.xingzhi[i]);
692
+              this.xingzhishow.push(item.id)
665 693
             }else{
666 694
               this.xingzhi[i].is_check =false
667 695
               this.xingzhi[i].check = 0
668
-              console.log('yyyyy',this.xingzhi[i]);
696
+              if(this.xingzhishow.length>0){
697
+                for(let j in this.xingzhishow){
698
+                  if(item.id == this.xingzhishow[j]){
699
+                    let index = this.xingzhishow.indexOf(this.xingzhishow[j]);
700
+                    this.xingzhishow.splice(index,1)
701
+                  }
702
+                }
703
+              }
669 704
             }
670 705
           }
671 706
         }
672
-        console.log('xingzhiclick',this.xingzhi);
673 707
       },
674 708
       xingzhiclick2(){
675 709
         if(this.check1==0){
676 710
           this.check1 = 1
677 711
           this.ischeck1 = true
678
-          
679 712
         }else{
680 713
           this.check1 = 0
681 714
           this.ischeck1 = false
682 715
         }
683
-        
684 716
       },
685 717
       // 疼痛症状
686 718
       tengzz_click(item){
@@ -689,9 +721,18 @@ export default {
689 721
             if(item.check == 0){
690 722
               this.tengtzz[i].is_check =true
691 723
               this.tengtzz[i].check = 1
724
+              this.zzshow.push(item.id)
692 725
             }else{
693 726
               this.tengtzz[i].is_check =false
694 727
               this.tengtzz[i].check = 0
728
+              if(this.zzshow.length>0){
729
+                for(let j in this.zzshow){
730
+                  if(item.id == this.zzshow[j]){
731
+                    let index = this.zzshow.indexOf(this.zzshow[j]);
732
+                    this.zzshow.splice(index,1)
733
+                  }
734
+                }
735
+              }
695 736
             }
696 737
           }
697 738
         }
@@ -700,7 +741,7 @@ export default {
700 741
         if(this.check2==0){
701 742
           this.check2 = 1
702 743
           this.ischeck2 = true
703
-          
744
+
704 745
         }else{
705 746
           this.check2 = 0
706 747
           this.ischeck2 = false
@@ -714,9 +755,18 @@ export default {
714 755
             if(item.check == 0){
715 756
               this.huodongyx[i].is_check =true
716 757
               this.huodongyx[i].check = 1
758
+              this.huodshow.push(item.id)
717 759
             }else{
718 760
               this.huodongyx[i].is_check =false
719 761
               this.huodongyx[i].check = 0
762
+              if(this.huodshow.length>0){
763
+                for(let j in this.huodshow){
764
+                  if(item.id == this.huodshow[j]){
765
+                    let index = this.huodshow.indexOf(this.huodshow[j]);
766
+                    this.huodshow.splice(index,1)
767
+                  }
768
+                }
769
+              }
720 770
             }
721 771
           }
722 772
         }
@@ -728,9 +778,18 @@ export default {
728 778
             if(item.check == 0){
729 779
               this.zhitong[i].is_check =true
730 780
               this.zhitong[i].check = 1
781
+              this.buliangshow.push(item.id)
731 782
             }else{
732 783
               this.zhitong[i].is_check =false
733 784
               this.zhitong[i].check = 0
785
+              if(this.buliangshow.length>0){
786
+                for(let j in this.buliangshow){
787
+                  if(item.id == this.buliangshow[j]){
788
+                    let index = this.buliangshow.indexOf(this.buliangshow[j]);
789
+                    this.buliangshow.splice(index,1)
790
+                  }
791
+                }
792
+              }
734 793
             }
735 794
           }
736 795
         }
@@ -738,7 +797,7 @@ export default {
738 797
       zhitongclick2(){
739 798
         if(this.check3==0){
740 799
           this.check3 = 1
741
-          this.ischeck3 = true 
800
+          this.ischeck3 = true
742 801
         }else{
743 802
           this.check3 = 0
744 803
           this.ischeck3 = false
@@ -751,9 +810,18 @@ export default {
751 810
             if(item.check == 0){
752 811
               this.chuzhifs[i].is_check =true
753 812
               this.chuzhifs[i].check = 1
813
+              this.chuzfshow.push(item.id)
754 814
             }else{
755 815
               this.chuzhifs[i].is_check =false
756 816
               this.chuzhifs[i].check = 0
817
+              if(this.chuzfshow.length>0){
818
+                for(let j in this.chuzfshow){
819
+                  if(item.id == this.chuzfshow[j]){
820
+                    let index = this.chuzfshow.indexOf(this.chuzfshow[j]);
821
+                    this.chuzfshow.splice(index,1)
822
+                  }
823
+                }
824
+              }
757 825
             }
758 826
           }
759 827
         }
@@ -765,53 +833,87 @@ export default {
765 833
             if(item.check == 0){
766 834
               this.hulichuzhi[i].is_check =true
767 835
               this.hulichuzhi[i].check = 1
836
+              this.hulishow.push(item.id)
768 837
             }else{
769 838
               this.hulichuzhi[i].is_check =false
770 839
               this.hulichuzhi[i].check = 0
840
+              if(this.hulishow.length>0){
841
+                for(let j in this.hulishow){
842
+                  if(item.id == this.hulishow[j]){
843
+                    let index = this.hulishow.indexOf(this.hulishow[j]);
844
+                    this.hulishow.splice(index,1)
845
+                  }
846
+                }
847
+              }
771 848
             }
772 849
           }
773 850
         }
774 851
       },
775 852
       // 疼痛确认
776 853
       pain_click(){
777
-        var parmas={
778
-          qita_val:this.qita_val,//其它疼痛评分
779
-          Pain_score:this.Pain_score,//疼痛评分
780
-          qita_textarea:this.qita_textarea,//其它文本
781
-          chulihou:this.chulihou,//处理后评分
782
-          zhuangtai:this.zhuangtai,//患者状态
783
-          emoteradio:this.emoteradio,//表情选中
784
-          NRS_val:this.NRS_val,//NRS选中
785
-          shijue_val:this.shijue_val,//视觉
786
-          yuyan_radio:this.yuyan_radio,//语言选中
787
-          chengr:this.chengr,//行为学成人
788
-          laonian:this.laonian,//行为学老年
789
-          zhongzhen:this.zhongzhen,//重症
790
-          youling:this.youling,//2-7个月
791
-          xingzhi:this.xingzhi,//疼痛性质
792
-          ischeck1:this.ischeck1,//疼痛性质其它选项
793
-          check1:this.check1,//疼痛性质其它选项
794
-          xingzhi_qita:this.xingzhi_qita,//疼痛性质其它填写
795
-          tengtzz:this.tengtzz,//疼痛症状
796
-          ischeck2:this.ischeck2,//疼痛症状其它选项
797
-          check2:this.check2,//疼痛症状其它选项
798
-          tengzz_qita:this.tengzz_qita,//疼痛症状其它填写
799
-          huodongyx:this.huodongyx,//活动影响
800
-          zhitong:this.zhitong,//止痛不良
801
-          ischeck3:this.ischeck3,//不良症状其它选项
802
-          check3:this.check3,//不良症状其它选项
803
-          fanying_qita:this.fanying_qita,//不良症状其它填写
804
-          tengdate:this.tengdate,//疼痛评估时间
805
-          teng_appraiser:this.teng_appraiser,//评估人
806
-          tengoptions:this.tengoptions,//评估人数组
807
-          chuzhifs:this.chuzhifs,//处置方式
808
-          hulichuzhi:this.hulichuzhi,//护理处置
809
-          patientID:this.patientID,
854
+        const data = {}
855
+        var list = []
856
+        data['RassGJradio'] = this.RassGJradio
857
+        data['date'] = this.tengdate
858
+        data['total'] = this.Pain_score
859
+        data['qita_val'] = this.qita_val
860
+        data['appraiser'] = this.teng_appraiser
861
+        list.push(data)
862
+        var params={
863
+          patient_id:this.patientID,
864
+          record_date:this.tengdate,
865
+          is_type:13,
866
+          list:list,
810 867
         }
868
+        savePatientHpressuresore(params).then(response =>{
869
+          if(response.data.state == 1){
870
+            const tengt = response.data.data.pedFallssessment
871
+            console.log('tengt',tengt);
872
+            this.$message({message:'保存成功',type:'success'})
873
+          }
874
+        })
875
+        // var params={
876
+        //   qita_val:this.qita_val,//其它疼痛评分
877
+        //   Pain_score:this.Pain_score,//疼痛评分
878
+        //   qita_textarea:this.qita_textarea,//其它文本
879
+        //   chulihou:this.chulihou,//处理后评分
880
+        //   zhuangtai:this.zhuangtai,//患者状态
881
+        //   emoteradio:this.emoteradio,//表情选中
882
+        //   NRS_val:this.NRS_val,//NRS选中
883
+        //   shijue_val:this.shijue_val,//视觉
884
+        //   yuyan_radio:this.yuyan_radio,//语言选中
885
+        //   chengr:this.chengr,//行为学成人
886
+        //   laonian:this.laonian,//行为学老年
887
+        //   zhongzhen:this.zhongzhen,//重症
888
+        //   youling:this.youling,//2-7个月
889
+        //   xingzhi:this.xingzhishow,//疼痛性质
890
+        //   ischeck1:this.ischeck1,//疼痛性质其它选项
891
+        //   check1:this.check1,//疼痛性质其它选项
892
+        //   xingzhi_qita:this.xingzhi_qita,//疼痛性质其它填写
893
+        //   tengtzz:this.zzshow,//疼痛症状
894
+        //   ischeck2:this.ischeck2,//疼痛症状其它选项
895
+        //   check2:this.check2,//疼痛症状其它选项
896
+        //   tengzz_qita:this.tengzz_qita,//疼痛症状其它填写
897
+        //   huodongyx:this.huodshow,//活动影响
898
+        //   zhitong:this.buliangshow,//止痛不良
899
+        //   ischeck3:this.ischeck3,//不良症状其它选项
900
+        //   check3:this.check3,//不良症状其它选项
901
+        //   fanying_qita:this.fanying_qita,//不良症状其它填写
902
+        //   tengdate:this.tengdate,//疼痛评估时间
903
+        //   teng_appraiser:this.teng_appraiser,//评估人
904
+        //   chuzhifs:this.chuzfshow,//处置方式
905
+        //   hulichuzhi:this.hulishow,//护理处置
906
+        //   patientID:this.patientID,
907
+
908
+        // }
811 909
       },
812 910
       // 历史评分
813 911
       RASShistory(){
814
-        this.$router.push({path: '/patients/RASS_history'})
912
+        this.$router.push({
913
+          path: '/patients/RASS_history',
914
+          query:{patient_id:this.patientID,
915
+              Patient_info:this.Patient_info}
916
+        })
815 917
       },
816 918
       // 转换时间
817 919
       getTime(val) {
@@ -824,10 +926,18 @@ export default {
824 926
           return uParseTime(val, '{y}-{m}-{d}')
825 927
           }
826 928
       },
929
+       // 患者信息
930
+      tranpatient(event){
931
+        console.log('event',event);
932
+        this.Patient_info={
933
+          name:event.name,
934
+          dialysis_no:event.dialysis_no
935
+        }
936
+      },
827 937
     },
828 938
     computed:{
829 939
       // Pain_score(){
830
-       
940
+
831 941
       //   // for(let i=0;i<this.RassGJ.length;i++){
832 942
       //     // if()
833 943
       //   // }
@@ -843,7 +953,7 @@ export default {
843 953
       //   }else if(this.RassGJradio == 5){
844 954
       //     return this.behav_val
845 955
       //   }else{
846
-          
956
+
847 957
       //   }
848 958
 
849 959
       // },
@@ -862,7 +972,7 @@ export default {
862 972
             return this.behav_val
863 973
           }
864 974
         },
865
-        
975
+
866 976
       }
867 977
     }
868 978
 }

+ 58 - 21
src/xt_pages/user/evaluationtool/dailyLife.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <!--  日常生活能力评估 -->
2 2
 <template>
3 3
     <div class="patient-container">
4
-        <patient-sidebar :id="patientID" defaultActive="5-5"></patient-sidebar>
4
+        <patient-sidebar :id="patientID" defaultActive="5-5" @tran-patient="tranpatient"></patient-sidebar>
5 5
         <div>
6 6
             <div class="patient-app-container advice-container app-container">
7 7
 
@@ -174,13 +174,13 @@
174 174
 
175 175
                       <div class="bottoms">
176 176
                           <span>评估人:</span>
177
-                          <el-select v-model="appraiser" placeholder="请选择" >
177
+                          <el-select v-model="appraiser" placeholder="请选择"  style="width:150px;">
178 178
                               <el-option
179 179
                               v-for="item in optionsarr"
180
-                              :key="item.value"
180
+                              :key="item.id"
181 181
                               :label="item.label"
182
-                              :value="item.value"
183
-                              style="width:150px;">
182
+                              :value="item.id"
183
+                             >
184 184
                               </el-option>
185 185
                           </el-select>
186 186
                       </div>
@@ -205,6 +205,7 @@
205 205
 <script>
206 206
 import PatientSidebar from '../components/PatientSidebar.vue'
207 207
 import { uParseTime } from '@/utils/tools'
208
+import {savePatientHpressuresore} from '@/api/fallassement'
208 209
 export default {
209 210
   components:{
210 211
     PatientSidebar
@@ -227,8 +228,10 @@ export default {
227 228
       paingdi_val:null,
228 229
       louti_val:null,
229 230
       appraiser:'',
230
-      optionsarr:[],
231
+      // optionsarr:[],
232
+      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
231 233
       date:this.getTime(new Date()),
234
+      Patient_info:{name:'',dialysis_no:''},
232 235
       jinshi:[{value:10,label:'可独立进食(10分)',is_check:false,check:0},
233 236
               {value:5,label:'需部分帮助(如协助夹菜等)(5分)',is_check:false,check:0},
234 237
               {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
@@ -269,8 +272,14 @@ export default {
269 272
               {value:5,label:'需部分帮助(他人帮助)(5分)',is_check:false,check:0},
270 273
               {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
271 274
             ],
275
+            
272 276
     }
273 277
   },
278
+  created(){
279
+    const id = this.$route.params && this.$route.params.id
280
+    this.patientID = parseInt(id)
281
+    // this.patient_id = parseInt(id)
282
+  },
274 283
   methods:{
275 284
     jinshiclick(e,item){
276 285
       for(let i=0;i<this.jinshi.length;i++){
@@ -455,22 +464,38 @@ export default {
455 464
     },
456 465
     // 确认
457 466
     lifeclick(){
467
+      const data={}
468
+      var list =[]
469
+      data['jinshi'] = this.jinshi_val
470
+      data['xizao'] = this.xizao_val
471
+      data['xiushi'] = this.xiushi_val
472
+      data['chuanyi'] = this.chuanyi_val
473
+      data['dabian'] = this.dabian_val
474
+      data['xioabian'] = this.xiaobian_val
475
+      data['ruce'] = this.ruce_val
476
+      data['chuangyi'] = this.chuangyi_val
477
+      data['pingdi'] = this.paingdi_val
478
+      data['louti'] = this.louti_val
479
+
480
+      data['patient_id'] = this.patientID
481
+      data['appraiser'] = this.appraiser
482
+      data['date'] = this.date
483
+      data['total'] = this.date_Totalpoints
484
+      list.push(data)
458 485
       var params={
459
-        jinshi:this.jinshi_val,
460
-        xizao:this.xizao_val,
461
-        xiushi:this.xiushi_val,
462
-        chuanyi:this.chuanyi_val,
463
-        dabian:this.dabian_val,
464
-        xioabian:this.xiaobian_val,
465
-        ruce:this.ruce_val,
466
-        chuangyi:this.chuangyi_val,
467
-        pingdi:this.paingdi_val,
468
-        louti:this.louti_val,
469
-        patientID:this.patientID,
470
-        appraiser:this.appraiser,//评估人
471
-        date:this.date,
472
-        date_Totalpoints:this.date_Totalpoints
486
+        patient_id:this.patientID,
487
+        record_date:this.date,
488
+        is_type:3,
489
+        list:list,
473 490
       }
491
+      savePatientHpressuresore(params).then(response=>{
492
+        if(response.data.state == 1){
493
+          const left =  response.data.data.pedFallssessment
494
+          console.log('response.data.data',left);
495
+          this.$message({message:'保存成功',type: 'success'})
496
+        }
497
+        
498
+      })
474 499
       console.log('2222222',params);
475 500
     },
476 501
     // 转换时间
@@ -484,8 +509,20 @@ export default {
484 509
         return uParseTime(val, '{y}-{m}-{d}')
485 510
         }
486 511
     },
512
+    // 历史
487 513
     datehistory(){
488
-      this.$router.push({path: '/patients/date_history'})
514
+      this.$router.push(
515
+        {path: '/patients/date_history',
516
+        query:{patient_id:this.patientID,
517
+              Patient_info:this.Patient_info}
518
+        })
519
+    },
520
+    tranpatient(event){
521
+      console.log('event',event);
522
+      this.Patient_info={
523
+        name:event.name,
524
+        dialysis_no:event.dialysis_no
525
+      }
489 526
     },
490 527
   },
491 528
   computed:{

+ 188 - 24
src/xt_pages/user/evaluationtool/hemodialysis.vue 查看文件

@@ -34,7 +34,7 @@
34 34
                             <td>
35 35
                               <div class="jiange">
36 36
                                 <span v-for="item in rushi" class="rightjiange">
37
-                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
37
+                                  <label><input type="checkbox" :value="item.label" v-model="item.check" @click="rushiclick(item)"/>&nbsp;{{ item.label }}</label>
38 38
                                 </span>
39 39
                               </div>
40 40
                             </td>
@@ -44,14 +44,17 @@
44 44
                             <td  style="padding:5px 0px">
45 45
                                 <div class="jiange">
46 46
                                   <span >
47
-                                    <label class="rightjiange"><input type="checkbox" name="ball" value="volleyball" />&nbsp;正常</label>
48
-                                    <label class="rightjiange"><input type="checkbox" name="ball" value="volleyball" />&nbsp;偏高
49
-                                      <el-input v-model="input" placeholder="" style="width:100px"></el-input>mmHg
47
+                                    <label class="rightjiange">
48
+                                      <input type="checkbox" v-model="check1" value="正常" @click="xueyaclick"/>&nbsp;正常</label>
49
+                                    <label class="rightjiange">
50
+                                      <input type="checkbox" v-model="check2" value="偏高" @click="xueyaclick"/>&nbsp;偏高
51
+                                      <el-input v-model="piangao_inp" placeholder="" style="width:100px"></el-input>mmHg
50 52
                                     </label>
51
-                                    <label class="rightjiange"><input type="checkbox" name="ball" value="volleyball" />&nbsp;偏低
52
-                                      <el-input v-model="input" placeholder="" style="width:100px"></el-input>mmHg
53
+                                    <label class="rightjiange">
54
+                                      <input type="checkbox" v-model="check3" value='偏低' @click="xueyaclick"/>&nbsp;偏低
55
+                                      <el-input v-model="piandi_inp" placeholder="" style="width:100px"></el-input>mmHg
53 56
                                     </label>
54
-                                    <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;未测</label>
57
+                                    <label><input type="checkbox" value='未测' v-model="check4" @click="xueyaclick"/>&nbsp;未测</label>
55 58
                                   </span>
56 59
                                 </div>
57 60
                             </td>
@@ -61,14 +64,19 @@
61 64
                             <td style="padding:5px 0px">
62 65
                                 <div class="jiange">
63 66
                                   <span >
64
-                                    <label class="rightjiange"><input type="checkbox" name="ball" value="volleyball" />&nbsp;正常</label>
65
-                                    <label class="rightjiange"><input type="checkbox" name="ball" value="volleyball" />&nbsp;偏高
66
-                                      <el-input v-model="input" placeholder="" style="width:100px"></el-input>次/分
67
+                                    <label class="rightjiange">
68
+                                      <input type="checkbox" value='正常' v-model='xinlu_check1' @click='xinluclick'/>&nbsp;正常</label>
69
+                                    <label class="rightjiange">
70
+                                      <input type="checkbox" value='偏高' v-model='xinlu_check2' @click='xinluclick'/>&nbsp;偏高
71
+                                      <el-input v-model="xinlug_input" placeholder="" style="width:100px"></el-input>次/分
72
+                                    </label>
73
+                                    <label class="rightjiange">
74
+                                      <input type="checkbox" value='偏低' v-model='xinlu_check3' @click='xinluclick'/>&nbsp;偏低
75
+                                      <el-input v-model="xinlud_input" placeholder="" style="width:100px"></el-input>次/分
67 76
                                     </label>
68
-                                    <label class="rightjiange"><input type="checkbox" name="ball" value="volleyball" />&nbsp;偏低
69
-                                      <el-input v-model="input" placeholder="" style="width:100px"></el-input>次/分
77
+                                    <label>
78
+                                      <input type="checkbox" value='未测' v-model='xinlu_check4' @click='xinluclick'/>&nbsp;未测
70 79
                                     </label>
71
-                                    <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;未测</label>
72 80
                                   </span>
73 81
                                 </div>
74 82
                             </td>
@@ -78,7 +86,7 @@
78 86
                             <td style="padding:5px 0px">
79 87
                                 <div class="jiange">
80 88
                                   <span v-for="item in huxi" class="rightjiange" >
81
-                                    <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item }}</label>
89
+                                    <label><input type="checkbox" :value='item.label' v-model='item.check' @click="huxiclick(item)"/>&nbsp;{{ item.label }}</label>
82 90
                                   </span>
83 91
                                 </div>
84 92
                             </td>
@@ -88,10 +96,12 @@
88 96
                             <td style="padding:5px 0px">
89 97
                               <div class="jiange">
90 98
                                 <span >
91
-                                  <label class="rightjiange"><input type="checkbox" name="ball" value="volleyball" />&nbsp;正常</label>
92
-                                  <label class="rightjiange"><input type="checkbox" name="ball" value="volleyball" />&nbsp;未测</label>
93
-                                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;发热
94
-                                    <el-input v-model="input" placeholder="" style="width:100px"></el-input>℃
99
+                                  <label class="rightjiange">
100
+                                    <input type="checkbox" value='正常' v-model="tiwen_check1" @click='tiwenclick'/>&nbsp;正常</label>
101
+                                  <label class="rightjiange">
102
+                                    <input type="checkbox" value='未测' v-model="tiwen_check2" @click='tiwenclick'/>&nbsp;未测</label>
103
+                                  <label><input type="checkbox" value='发热' v-model="tiwen_check3" @click='tiwenclick'/>&nbsp;发热
104
+                                    <el-input v-model="tiwei_inp" placeholder="" style="width:100px"></el-input>℃
95 105
                                   </label>
96 106
                                 </span>
97 107
                               </div>
@@ -600,7 +610,6 @@
600 610
             </div>
601 611
 
602 612
             <div>
603
-
604 613
               <div class="bottoms">
605 614
                   <span>评估日期:</span>
606 615
                   <el-date-picker
@@ -630,9 +639,6 @@
630 639
                 <el-button  @click="hemod_quxiao" >取消</el-button>
631 640
               </div>
632 641
             </div>
633
-            <!-- <div style="position:relative"> -->
634
-
635
-            <!-- </div> -->
636 642
           </div>
637 643
           <!-- 右 -->
638 644
           <div style="width: 28%;">
@@ -1298,8 +1304,29 @@ export default {
1298 1304
       options:[],
1299 1305
       value:'',
1300 1306
       value1:'',
1301
-      rushi:['自行步入','轮椅','推床'],
1302
-      huxi:['正常','不规则呼吸','无咳嗽','有咳嗽','无痰液','有痰液'],
1307
+
1308
+      rushi_show:[],
1309
+      check1:false,
1310
+      check2:false,
1311
+      check3:false,
1312
+      check4:false,
1313
+      piangao_inp:'',
1314
+      piandi_inp:'',
1315
+      xinlug_input:'',
1316
+      xinlud_input:'',
1317
+      xinlu_check1:false,
1318
+      xinlu_check2:false,
1319
+      xinlu_check3:false,
1320
+      xinlu_check4:false,
1321
+      huxi_show:[],
1322
+      tiwei_inp:'',
1323
+      tiwen_check1:false,
1324
+      tiwen_check2:false,
1325
+      tiwen_check3:false,
1326
+
1327
+      rushi:[{id:1,label:'自行步入',check:0},{id:2,label:'轮椅',check:0},{id:3,label:'推床',check:0}],
1328
+      huxi:[{id:1,label:'正常',check:0},{id:2,label:'不规则呼吸',check:0},{id:3,label:'无咳嗽',check:0},{id:4,label:'有咳嗽',check:0},
1329
+            {id:5,label:'无痰液',check:0},{id:6,label:'有痰液',check:0}],
1303 1330
       shenghuozili:['完全独立','辅助','依赖'],
1304 1331
       tili:['良好','一般','差'],
1305 1332
       wowei:['平卧位','半卧位','坐位'],
@@ -1336,11 +1363,141 @@ export default {
1336 1363
     }
1337 1364
   },
1338 1365
   methods:{
1366
+    // 入室
1367
+    rushiclick(item){
1368
+      for(let i in this.rushi){
1369
+        if(item.label == this.rushi[i].label){
1370
+          if(item.check == 0){
1371
+            this.rushi[i].check = 1
1372
+            this.rushi_show.push(item.id)
1373
+          }else{
1374
+            this.rushi[i].check = 0
1375
+            if(this.rushi_show.length >0){
1376
+              for(let j in this.rushi_show){
1377
+                if(item.id == this.rushi_show[j]){
1378
+                  let index = this.rushi_show.indexOf(this.rushi_show[j]);
1379
+                  this.rushi_show.splice(index,1)
1380
+                }
1381
+              }
1382
+            }
1383
+          }
1384
+        }
1385
+      }
1386
+    },
1387
+    // 血压
1388
+    xueyaclick(e){
1389
+      console.log(e.target.value);
1390
+      const xueya = e.target.value
1391
+      if(xueya == '正常' && this.check1 == false){
1392
+        console.log('11111');
1393
+        this.check1 = true
1394
+      }else{
1395
+        console.log('22222');
1396
+        this.check1 = false
1397
+      }
1398
+      if(xueya == '偏高' && this.check2 == false){
1399
+        console.log('33333');
1400
+        this.check2 = true
1401
+      }else{
1402
+        console.log('44444');
1403
+        this.check2 = false
1404
+      }
1405
+      if(xueya == '偏低' && this.check3 == false){
1406
+        this.check3 = true
1407
+      }else{
1408
+        console.log('66666');
1409
+        this.check3 = false
1410
+      }
1411
+      if(xueya == '未测' && this.check4 == false){
1412
+        this.check4 = true
1413
+      }else{
1414
+        console.log('88888');
1415
+        this.check4 = false
1416
+      }
1417
+    },
1418
+    // 心率
1419
+    xinluclick(e){
1420
+      const xinlu = e.target.value
1421
+      if(xinlu == '正常' && this.xinlu_check1 == false){
1422
+        console.log('11111');
1423
+        this.xinlu_check1 = true
1424
+      }else{
1425
+        console.log('22222');
1426
+        this.xinlu_check1 = false
1427
+      }
1428
+      if(xinlu == '偏高' && this.xinlu_check2 == false){
1429
+        console.log('33333');
1430
+        this.xinlu_check2 = true
1431
+      }else{
1432
+        console.log('44444');
1433
+        this.xinlu_check2 = false
1434
+      }
1435
+      if(xinlu == '偏低' && this.xinlu_check3 == false){
1436
+        this.xinlu_check3 = true
1437
+      }else{
1438
+        console.log('66666');
1439
+        this.xinlu_check3 = false
1440
+      }
1441
+      if(xinlu == '未测' && this.xinlu_check4 == false){
1442
+        this.xinlu_check4 = true
1443
+      }else{
1444
+        console.log('88888');
1445
+        this.xinlu_check4 = false
1446
+      }
1447
+    },
1448
+    // 呼吸
1449
+    huxiclick(item){
1450
+      for(let i in this.huxi){
1451
+        if(item.label == this.huxi[i].label){
1452
+          if(item.check == 0){
1453
+            this.huxi[i].check = 1
1454
+            this.huxi_show.push(item.id)
1455
+          }else{
1456
+            this.huxi[i].check = 0
1457
+            if(this.huxi_show.length >0){
1458
+              for(let j in this.huxi_show){
1459
+                if(item.id == this.huxi_show[j]){
1460
+                  let index = this.huxi_show.indexOf(this.huxi_show[j]);
1461
+                  this.huxi_show.splice(index,1)
1462
+                }
1463
+              }
1464
+            }
1465
+          }
1466
+        }
1467
+      }
1468
+    },
1469
+    // 体温
1470
+    tiwenclick(e){
1471
+      const tiwen = e.target.value
1472
+      if(tiwen == '正常' && this.tiwen_check1 == false){
1473
+        console.log('11111');
1474
+        this.tiwen_check1 = true
1475
+      }else{
1476
+        console.log('22222');
1477
+        this.tiwen_check1 = false
1478
+      }
1479
+      if(tiwen == '未测' && this.tiwen_check2 == false){
1480
+        console.log('33333');
1481
+        this.tiwen_check2 = true
1482
+      }else{
1483
+        console.log('44444');
1484
+        this.tiwen_check2 = false
1485
+      }
1486
+      if(tiwen == '发热' && this.tiwen_check3 == false){
1487
+        this.tiwen_check3 = true
1488
+      }else{
1489
+        console.log('66666');
1490
+        this.tiwen_check3 = false
1491
+      }
1492
+    },
1493
+
1494
+    // 新增
1339 1495
     hemod_add(){
1340 1496
       this.append=true
1341 1497
       this.baocunqx = true
1342 1498
       this.hemodadd_show=false
1343 1499
     },
1500
+    // 保存
1344 1501
     hemod_save(){
1345 1502
       if(this.hemod_pinggu==null){
1346 1503
         this.$message('请选择评估人')
@@ -1363,6 +1520,7 @@ export default {
1363 1520
       }
1364 1521
 
1365 1522
     },
1523
+    // 取消
1366 1524
     hemod_quxiao(){
1367 1525
       if(this.cancel_num==0){
1368 1526
         this.append=false
@@ -1376,17 +1534,20 @@ export default {
1376 1534
         this.hemodadd_show=true
1377 1535
       }
1378 1536
     },
1537
+    // 编辑
1379 1538
     hemod_editor(){
1380 1539
       this.hemodadd_show=false
1381 1540
       this.baocunqx=true
1382 1541
       this.gsdayin=false
1383 1542
     },
1543
+    // 删除弹窗的取消
1384 1544
     dele_Cancel(){
1385 1545
       this.append=false
1386 1546
       this.append=true
1387 1547
       this.baocunqx=false
1388 1548
       this.dele_dialogVisible=false
1389 1549
     },
1550
+    // 删除
1390 1551
     hemod_dele(){
1391 1552
       if(this.dele_id !=''){
1392 1553
         this.append=false
@@ -1399,9 +1560,11 @@ export default {
1399 1560
         this.$message('请选择需要删除的记录')
1400 1561
       }
1401 1562
     },
1563
+    //选中删除行
1402 1564
     hemod_click(row,column, event){
1403 1565
       this.dele_id=row.id
1404 1566
     },
1567
+    // 确认删除
1405 1568
     deleclick(){
1406 1569
       for(let i=0;i<this.history_hemod.length;i++){
1407 1570
         if(this.dele_id==this.history_hemod[i].id){
@@ -1410,6 +1573,7 @@ export default {
1410 1573
       }
1411 1574
       this.dele_dialogVisible=false
1412 1575
     },
1576
+    // 打印
1413 1577
     print_pingfen(){
1414 1578
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .tables thead th{ text-align: center;height: 20px;} .tables tbody td{height: 20px;padding:0 10px} .tables{font-size: 16px;}}'
1415 1579
       printJS({

+ 50 - 14
src/xt_pages/user/evaluationtool/mindAssessment.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
     <div class="patient-container">
3
-        <patient-sidebar :id="patientID" defaultActive="5-10"></patient-sidebar>
3
+        <patient-sidebar :id="patientID" defaultActive="5-10" @tran-patient="tranpatient"></patient-sidebar>
4 4
         <div>
5 5
             <div class="patient-app-container advice-container app-container">
6 6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
@@ -79,13 +79,13 @@
79 79
 
80 80
                         <div class="bottoms">
81 81
                             <span>评估人:</span>
82
-                            <el-select v-model="appraiser" placeholder="请选择" >
82
+                            <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
83 83
                                 <el-option
84 84
                                 v-for="item in optionsarr"
85
-                                :key="item.value"
85
+                                :key="item.id"
86 86
                                 :label="item.label"
87
-                                :value="item.value"
88
-                                style="width:150px;">
87
+                                :value="item.id"
88
+                                >
89 89
                                 </el-option>
90 90
                             </el-select>
91 91
                         </div>
@@ -102,6 +102,7 @@
102 102
 <script>
103 103
 import { uParseTime } from '@/utils/tools'
104 104
 import PatientSidebar from '../components/PatientSidebar.vue'
105
+import {savePatientHpressuresore} from '@/api/fallassement'
105 106
 export default {
106 107
   components:{
107 108
     PatientSidebar
@@ -122,15 +123,26 @@ export default {
122 123
           {id:7,label:'怪异行为',is_check:false,check:0},{id:8,label:'其他',is_check:false,check:0},],
123 124
           qingan:[{value:1,label:'有'},{value:0,label:'无'}],
124 125
           appraiser:'',
125
-          optionsarr:[],
126
-          date:this.getTime(new Date())
126
+          // optionsarr:[],
127
+          optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
128
+          date:this.getTime(new Date()),
129
+          Patient_info:{name:'',dialysis_no:''},
127 130
       }
128 131
       
129 132
   },
133
+  created(){
134
+    const id = this.$route.params && this.$route.params.id
135
+    this.patientID = parseInt(id)
136
+    // this.patient_id = parseInt(id)
137
+  },
130 138
   methods:{
131 139
     // 历史评分
132 140
     mindhistory(){
133
-      this.$router.push({path: '/patients/mind_history'})
141
+      this.$router.push({
142
+        path: '/patients/mind_history',
143
+        query:{patient_id:this.patientID,
144
+              Patient_info:this.Patient_info}
145
+      })
134 146
     },
135 147
     xinliclick(item){
136 148
       for(let i in this.xinli){
@@ -156,14 +168,29 @@ export default {
156 168
     },
157 169
     // 确认
158 170
     mindclick(){
171
+      const data={}
172
+      var list = []
173
+      data['radio1'] = this.radio1
174
+      data['radio2'] = this.radio2
175
+      data['radio3'] = this.radio3
176
+      data['date'] = this.date
177
+      data['appraiser'] = this.appraiser
178
+      data['xinli'] = this.xinlishow
179
+      list.push(data)
159 180
       var params={
160
-        radio1:this.radio1,
161
-        radio2:this.radio2,
162
-        radio3:this.radio3,
163
-        date:this.date,
164
-        appraiser:this.appraiser,
165
-        xinli:this.xinlishow,
181
+        patient_id:this.patientID,
182
+        record_date:this.date,
183
+        is_type:8,
184
+        list:list,
166 185
       }
186
+      console.log('params---',params);
187
+      savePatientHpressuresore(params).then(response =>{
188
+        if(response.data.state == 1){
189
+          const mind = response.data.data.pedFallssessment
190
+          console.log('mind',mind);
191
+          this.$message({message:'保存成功',type: 'success'})
192
+        }
193
+      })
167 194
     },
168 195
     // 转换时间
169 196
     getTime(val) {
@@ -176,6 +203,15 @@ export default {
176 203
         return uParseTime(val, '{y}-{m}-{d}')
177 204
         }
178 205
     },
206
+    // 子传父
207
+    tranpatient(event){
208
+      console.log('event',event);
209
+      this.Patient_info={
210
+        name:event.name,
211
+        dialysis_no:event.dialysis_no
212
+      }
213
+    },
214
+
179 215
   }
180 216
 }
181 217
 </script>

+ 66 - 28
src/xt_pages/user/evaluationtool/nourishmentAssessment.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
     <div class="patient-container">
3
-        <patient-sidebar :id="patientID" defaultActive="5-8"></patient-sidebar>
3
+        <patient-sidebar :id="patientID" defaultActive="5-8" @tran-patient="tranpatient"></patient-sidebar>
4 4
         <div>
5 5
             <div class="patient-app-container advice-container app-container">
6 6
                 <div class='content_top' style="width: 100%;margin-bottom: 20px;">
@@ -182,9 +182,9 @@
182 182
                             <el-select v-model="yy_appraiser" placeholder="请选择" style="width:120px;">
183 183
                                 <el-option
184 184
                                 v-for="item in yy_options"
185
-                                :key="item.value"
186
-                                :label="item.label"
187
-                                :value="item.value"
185
+                                :key="item.admin_user_id"
186
+                                :label="item.user_name"
187
+                                :value="item.admin_user_id"
188 188
                                 >
189 189
                                 </el-option>
190 190
                             </el-select>
@@ -202,6 +202,7 @@
202 202
 <script>
203 203
 import PatientSidebar from '../components/PatientSidebar.vue'
204 204
 import { uParseTime } from '@/utils/tools'
205
+import {savePatientHpressuresore} from '@/api/fallassement'
205 206
 export default {
206 207
   components:{
207 208
     PatientSidebar
@@ -230,8 +231,9 @@ export default {
230 231
       is_check3:false,
231 232
       check3:0,
232 233
       yy_date:this.getTime(new Date()),
234
+      Patient_info:{name:'',dialysis_no:''},
233 235
       yy_appraiser:'',
234
-      yy_options:[],
236
+      yy_options:[{admin_user_id:1,user_name:'寒千落'},{admin_user_id:2,user_name:'千仞雪'},{admin_user_id:3,user_name:'千亦雪'}],
235 237
       jibq_show:[],
236 238
       jibz_show:[],
237 239
       jibzz_show:[],
@@ -239,8 +241,8 @@ export default {
239 241
       yyz_show:[],
240 242
       yyzz_show:[],
241 243
       jibing_qdu:[{id:1,is_check:false,check:0,label:'骸骨折'},{id:2,is_check:false,check:0,label:'慢性疾病急性发作或有'},{id:3,is_check:false,check:0,label:'COPD'},
242
-                  {is_check:false,check:0,label:'血液透析'},{is_check:false,check:0,label:'肝硬化'},
243
-                  {id:4,is_check:false,check:0,label:'一般恶性肿瘤患者'},{id:5,is_check:false,check:0,label:'糖尿病'}],
244
+                  {id:4,is_check:false,check:0,label:'血液透析'},{id:5,is_check:false,check:0,label:'肝硬化'},
245
+                  {id:6,is_check:false,check:0,label:'一般恶性肿瘤患者'},{id:7,is_check:false,check:0,label:'糖尿病'}],
244 246
       jibing_zhdu:[{id:1,is_check:false,check:0,label:'腹部大手术'},{id:2,is_check:false,check:0,label:'脑卒中'},
245 247
                     {id:3,is_check:false,check:0,label:'重度肺炎'},{id:4,is_check:false,check:0,label:'血液恶性肿瘤'}],
246 248
       jibing_zhongsdu:[{id:1,is_check:false,check:0,label:'颅脑损伤'},{id:2,is_check:false,check:0,label:'骨髓移植'},
@@ -251,6 +253,10 @@ export default {
251 253
                     {id:3,is_check:false,check:0,label:'体重指数(BMI)<18.5'},{id:4,is_check:false,check:0,label:'血蛋白<30g/L(得不到准确的BNI值时用白蛋白替代)'}],                  
252 254
     }
253 255
   },
256
+  created(){
257
+    const id = this.$route.params && this.$route.params.id
258
+    this.patientID = parseInt(id)
259
+  },
254 260
   methods:{
255 261
     // 选中分值
256 262
     handleCheckedCitiesChange(e){
@@ -639,33 +645,65 @@ export default {
639 645
     },
640 646
     // 确认
641 647
     yy_onsbmit(){
648
+      const data = {}
649
+      const list = []
650
+      data['radio'] = this.radio
651
+      data['radio1'] = this.radio1
652
+      data['radio2'] = this.radio2
653
+      data['jibing_qdu'] = this.jibq_show
654
+      data['jibing_zhdu'] = this.jibz_show
655
+      data['jibing_zhongsdu'] = this.jibzz_show
656
+      data['jb_qing'] = this.jibing_qdu
657
+      data['jb_zhong'] = this.jibing_zhdu
658
+      data['jb_zhingd'] = this.jibing_zhongsdu
659
+      data['is_check1'] = this.is_check1
660
+      data['is_check2'] = this.is_check2
661
+      data['is_check3'] = this.is_check3
662
+      data['yingyang_qd'] = this.yyq_show
663
+      data['yingyang_zd'] = this.yyz_show
664
+      data['yingyang_zzd'] = this.yyzz_show
665
+
666
+      data['yiya_qd'] = this.yingyang_qd
667
+      data['yiya_zd'] = this.yingyang_zd
668
+      data['yiya_zzd'] = this.yingyang_zzd
669
+      data['yy_date'] = this.yy_date
670
+      data['yy_appraiser'] = this.yy_appraiser
671
+      data['total'] = this.nour_Totalpoints
672
+      data['qd_input'] = this.qd_input
673
+      data['zd_input'] = this.zd_input
674
+      data['zzd_input'] = this.zzd_input
675
+      list .push(data)
642 676
       var params={
643
-        radio:this.radio,
644
-        radio1:this.radio1,
645
-        radio2:this.radio2,
646
-        jibing_qdu:this.jibq_show,
647
-        jibing_zhdu:this.jibz_show,
648
-        jibing_zhongsdu:this.jibzz_show,
649
-        is_check1:this.is_check1,
650
-        check1:this.check1,
651
-        is_check2:this.is_check2,
652
-        check2:this.check2,
653
-        is_check3:this.is_check3,
654
-        check3:this.check3,
655
-        yingyang_qd:this.yyq_show,
656
-        yingyang_zd:this.yyz_show,
657
-        yingyang_zzd:this.yyzz_show,
658
-        yy_date:this.yy_date,
659
-        yy_appraiser:this.yy_appraiser,
660
-        nour_Totalpoints:this.nour_Totalpoints,
661
-        patientID:this.patientID,
677
+        patient_id:this.patientID,
678
+        record_date:this.yy_date,
679
+        is_type:6,
680
+        list:list,
662 681
       }
663 682
       console.log('params---',params);
683
+      savePatientHpressuresore(params).then(response =>{
684
+        if(response.data.state == 1){
685
+          const nour = response.data.data.pedFallssessment
686
+          console.log('11111',nour)
687
+          this.$message({message:'保存成功',type:'success'})
688
+        }
689
+      })
664 690
     },
665 691
     // 跳转历史
666 692
     nourishistory(){
667
-      this.$router.push({path: '/patients/nourishment_history'})
668
-    }
693
+      this.$router.push({
694
+        path: '/patients/nourishment_history',
695
+        query:{patient_id:this.patientID,
696
+              Patient_info:this.Patient_info}
697
+      })
698
+    },
699
+    // 患者信息
700
+    tranpatient(event){
701
+      console.log('event',event);
702
+      this.Patient_info={
703
+        name:event.name,
704
+        dialysis_no:event.dialysis_no
705
+      }
706
+    },
669 707
   },
670 708
   computed:{
671 709
     nour_Totalpoints(){

+ 1 - 0
src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue 查看文件

@@ -338,6 +338,7 @@ export default {
338 338
         return uParseTime(val, '{y}-{m}-{d}')
339 339
         }
340 340
     },
341
+    // 确认
341 342
     toDialog(){
342 343
       if(this.tumble==''){
343 344
         this.$message({message:'请选择评估人',offset:150});

+ 95 - 42
src/xt_pages/user/evaluationtool/pressuresore.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <!--压疮风险评估 -->
2 2
 <template>
3 3
     <div class="patient-container">
4
-      <patient-sidebar :id="patientID" defaultActive="5-3"></patient-sidebar>
4
+      <patient-sidebar :id="patientID" defaultActive="5-3" @tran-patient="tranpatient"></patient-sidebar>
5 5
       <div>
6 6
         <div class="patient-app-container advice-container app-container">
7 7
           <div class='content_top' style="">
@@ -163,7 +163,7 @@
163 163
                     <tr>
164 164
                       <td rowspan="6" style="position: relative;vertical-align: top;">
165 165
                         <div class="jiange" v-for="item in hulicuoshi" >
166
-                          <label><input name="ball" type="checkbox" v-model="item.is_check" @click="huli_check(item)" value="football" />&nbsp;{{ item.label }}</label>
166
+                          <label><input name="ball" type="checkbox" v-model="item.is_check" @click="huli_check(item)" />&nbsp;{{ item.label }}</label>
167 167
                         </div>
168 168
                         <div class="tianjia" @click="add_press=true">
169 169
                           +添加
@@ -229,9 +229,9 @@
229 229
                     <el-select v-model="duty" placeholder="请选择" style="width:120px;">
230 230
                         <el-option
231 231
                           v-for="item in dutyoptions"
232
-                          :key="item.value"
232
+                          :key="item.id"
233 233
                           :label="item.label"
234
-                          :value="item.value"
234
+                          :value="item.id"
235 235
                           >
236 236
                         </el-option>
237 237
                     </el-select>
@@ -261,9 +261,12 @@
261 261
             <div class="zhuangui">
262 262
               <span>转归:</span>
263 263
               <div style="display: inline-block;position: relative;top: 0px;">
264
-                <el-checkbox-group v-model="checkList">
264
+                <!-- <el-checkbox-group v-model="checkList">
265 265
                   <el-checkbox v-for="item in zhuangui" :label="item.value" :key="item.id" :value="item.id"></el-checkbox>
266
-                </el-checkbox-group>
266
+                </el-checkbox-group> -->
267
+                <span v-for="item in zhuangui" style="display: inline-block;margin-right: 10px;">
268
+                  <label><input type="checkbox" v-model="item.is_check" @click="zhuangcheck(item)" />{{ item.value }}</label>
269
+                </span>
267 270
               </div>
268 271
             </div>
269 272
             <div class="zhuangui">
@@ -325,11 +328,7 @@
325 328
         </div>
326 329
       </div>
327 330
       <!-- 添加弹窗页面 -->
328
-      <el-dialog
329
-        title="增加护理措施"
330
-        :visible.sync="add_press"
331
-        width="30%"
332
-      >
331
+      <el-dialog title="增加护理措施" :visible.sync="add_press" width="30%">
333 332
         <div>
334 333
           <div style="margin-bottom: 10px;font-size: 16px;">护理措施:</div>
335 334
           <!-- <input type="text" v-model="huli_value" style="width: 290px;height: 36px;border: 1px solid #d7d7d7;"> -->
@@ -348,7 +347,7 @@
348 347
 <script>
349 348
 import PatientSidebar from '../components/PatientSidebar'
350 349
 import { uParseTime } from '@/utils/tools'
351
-import {getAllNurseList,savePatientPressuresore } from '@/api/fallassement'
350
+import {getAllNurseList,savePatientHpressuresore } from '@/api/fallassement'
352 351
 export default {
353 352
    components:{
354 353
     PatientSidebar
@@ -367,12 +366,12 @@ export default {
367 366
       yidong:null,
368 367
       yingyang:null,
369 368
       mocha:null,
370
-      zhuangui:[{id:1,value:'出院'},{id:2,value:'死亡'},{id:3,value:'其他'}],
369
+      zhuangui:[{id:1,value:'出院',is_check:false,check:0},{id:2,value:'死亡',is_check:false,check:0},{id:3,value:'其他',is_check:false,check:0}],
371 370
       add_press:false,
372 371
       date:this.getTime(new Date()),
373 372
       huli_value:'',
374 373
       family_date:this.getTime(new Date()),
375
-      dutyoptions:[],
374
+      dutyoptions:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
376 375
       duty:'',
377 376
       family_member:'',
378 377
       appraiser:'',
@@ -380,11 +379,13 @@ export default {
380 379
       nurse:'',
381 380
       nurse_options:[],
382 381
       nurse_date:this.getTime(new Date()),
383
-      hulicheckarr:[],
382
+      hulicheckarr:[],//护理措施选中
384 383
       hulicuoshi:[{id:1,label:'挂床头警示标识',hulicheck:0,is_check:false},{id:2,label:'保护受压皮肤,使用减压用具(气垫床/压疮床)',hulicheck:0,is_check:false},
385 384
       {id:3,label:'定时翻身,移动避免拖拉',hulicheck:0,is_check:false},{id:4,label:'加强营养',hulicheck:0,is_check:false},
386 385
       {id:5,label:'保持被衣物清洁舒适',hulicheck:0,is_check:false},{id:6,label:'其他',hulicheck:0,is_check:false}],
387
-      nurseList:[]
386
+      nurseList:[],
387
+      zhuang_show:'',
388
+      Patient_info:{name:'',dialysis_no:''},
388 389
     }
389 390
    },
390 391
    methods:{
@@ -403,16 +404,48 @@ export default {
403 404
     // 点击护理措施
404 405
     huli_check(item){
405 406
       for(let i in this.hulicuoshi){
406
-        if(item.is_check==false){
407
-          if(this.hulicuoshi[i].label==item.label){
407
+        if(item.label==this.hulicuoshi[i].label ){
408
+          if(item.is_check==false){
408 409
             this.hulicuoshi[i].hulicheck=1
410
+            this.hulicuoshi[i].is_check=true
411
+            this.hulicheckarr.push(item.id)
412
+          }else{
413
+            this.hulicuoshi[i].hulicheck = 0
414
+            this.hulicuoshi[i].is_check = false
415
+            if(this.hulicheckarr.length>0){
416
+              for(let j in this.hulicheckarr){
417
+                if(item.id == this.hulicheckarr[j]){
418
+                  let index = this.hulicheckarr.indexOf(this.hulicheckarr[j]);
419
+                  this.hulicheckarr.splice(index,1)
420
+                }
421
+              }
422
+            }
409 423
           }
410 424
         }
411 425
       }
412 426
     },
427
+    // 历史
413 428
     yachaunghistory(){
414
-      this.$router.push({path: '/patients/Pressure_history'})
429
+      this.$router.push({
430
+        path: '/patients/Pressure_history',
431
+        query:{patient_id:this.patientID,
432
+              Patient_info:this.Patient_info}
433
+      })
415 434
     },
435
+    // 转归
436
+    zhuangcheck(item){
437
+      for(let i in this.zhuangui){
438
+        if(item.id == this.zhuangui[i].id){
439
+          this.zhuangui[i].is_check =true
440
+          this.zhuangui[i].check = 1
441
+          this.zhuang_show = item.id
442
+        }else{
443
+          this.zhuangui[i].is_check =false
444
+          this.zhuangui[i].check = 0
445
+        }
446
+      }
447
+    },
448
+    // 时间转换
416 449
     getTime(val) {
417 450
         if(val < 0){
418 451
           return ""
@@ -423,6 +456,7 @@ export default {
423 456
         return uParseTime(val, '{y}-{m}-{d}')
424 457
         }
425 458
     },
459
+    // 评估
426 460
     getAllNurseList(){
427 461
         getAllNurseList().then(response=>{
428 462
            if(response.data.state ==1){
@@ -434,35 +468,49 @@ export default {
434 468
     },
435 469
     // 确认
436 470
     Pressuresore(){
471
+      const data = {}
472
+      var list = []
473
+      data['date'] = this.date
474
+      data['ganzhi'] = this.ganzhi
475
+      data['shidu'] = this.shidu
476
+      data['huodong'] = this.huodong
477
+      data['yidong'] = this.yidong
478
+      data['yingyang'] = this.yingyang
479
+      data['mocha'] = this.mocha
480
+      data['mark'] = this.mark
481
+      data['duty'] = this.duty
482
+      data['jiashu'] = this.family_member
483
+      data['jiashu_date'] = this.family_date
484
+      data['appraiser'] = this.appraiser
485
+      data['pingg_date'] = this.appraiser_date
486
+      data['nurse'] = this.nurse
487
+      data['nurse_date'] = this.nurse_date
488
+      data['zhuang_show'] = this.zhuang_show
489
+      data['hulicuoshi'] = this.hulicheckarr
490
+      list.push(data)
437 491
       var params={
438
-        date:this.date,
439
-        ganzhi:this.ganzhi,
440
-        shidu:this.shidu,
441
-        huodong:this.huodong,
442
-        yidong:this.yidong,
443
-        yingyang:this.yingyang,
444
-        mocha:this.mocha,
445
-        mark:this.mark,
446
-        duty:this.duty,
447
-        dutyoptions:this.dutyoptions,
448
-        family_member:this.family_member,
449
-        family_date:this.family_date,
450
-        appraiser:this.appraiser,//评估人签字
451
-        appraiser_date:this.appraiser_date,
452
-        nurse:this.nurse,
453
-        nurse_options:this.nurse_options,
454
-        nurse_date:this.nurse_date,
455
-        patientID:this.patientID,
456
-        checkList:this.checkList,
457
-        hulicuoshi:this.hulicuoshi,
492
+        patient_id:this.patientID,
493
+        record_date:this.date,
494
+        is_type:1,
495
+        list:list,
458 496
       }
459 497
       console.log('params----',params);
460
-      savePatientPressuresore.then(response=>{
498
+      savePatientHpressuresore(params).then(response=>{
461 499
         if(response.data.state == 1){
462
-
500
+          const save = response.data.data.pedFallssessment
501
+          console.log('pedFallssessment',save);
502
+          this.$message({message:'保存成功',type:'success'})
463 503
         }
464 504
       })
465
-    }
505
+    },
506
+    // 患者信息
507
+    tranpatient(event){
508
+      console.log('event',event);
509
+      this.Patient_info={
510
+        name:event.name,
511
+        dialysis_no:event.dialysis_no
512
+      }
513
+    },
466 514
    },
467 515
    computed:{
468 516
     mark(){
@@ -470,6 +518,8 @@ export default {
470 518
     }
471 519
    },
472 520
    created(){
521
+    const id = this.$route.params && this.$route.params.id
522
+    this.patientID = parseInt(id)
473 523
      this.getAllNurseList()
474 524
    }
475 525
 }
@@ -530,4 +580,7 @@ export default {
530 580
     .zhuangui{
531 581
         margin-top: 10px;
532 582
     }
583
+    input{
584
+        -webkit-appearance: checkbox;
585
+    }
533 586
 </style>

+ 136 - 40
src/xt_pages/user/evaluationtool/pruritusAssessment.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div class="patient-container">
3
-    <patient-sidebar :id="patientID" defaultActive="5-11"></patient-sidebar>
3
+    <patient-sidebar :id="patientID" defaultActive="5-11" @tran-patient="tranpatient"></patient-sidebar>
4 4
     <div>
5 5
       <div class="patient-app-container advice-container app-container">
6 6
         <div class='content_top' style="width: 100%;margin-bottom: 20px;">
@@ -26,12 +26,11 @@
26 26
                 <td>
27 27
                   <div class="jiange"><!-- v-model="item.is_check" v-model="is_check1" v-model="is_check2"-->
28 28
                     <span v-for="item in buwei" class="rightjiange" >
29
-                        <label><input type="checkbox" class="check" :value="item.label" v-model="item.is_check" @click="handleCheckedCitiesChange($event,item)"/>&nbsp;{{ item.label }}</label>
29
+                        <label><input type="checkbox" class="check" :value="item.id" v-model="item.is_check" @click="handleCheckedCitiesChange($event,item)"/>&nbsp;{{ item.label }}</label>
30 30
                     </span>
31 31
                     <label ><input type="checkbox" class="check" value="其他"  v-model="is_check1" @click="qita_click"/>
32 32
                         &nbsp;其他 <el-input v-model="buwei_input" style="width: 100px;"></el-input>
33 33
                     </label>
34
-                    <!-- quan_change -->
35 34
                     <label >
36 35
                       <input type="checkbox" class="checkbox" value="全身" v-model="is_check2" @click="quan_change"/>&nbsp;全身
37 36
                     </label>
@@ -92,7 +91,7 @@
92 91
             <div class="bottoms">
93 92
               <span>评估日期:</span>
94 93
               <el-date-picker
95
-                  v-model="pruritus_data"
94
+                  v-model="pruritus_date"
96 95
                   type="date"
97 96
                   value-format="yyyy-MM-dd"
98 97
                   placeholder="选择日期"
@@ -103,13 +102,13 @@
103 102
 
104 103
             <div class="bottoms">
105 104
               <span>评估人:</span>
106
-              <el-select v-model="pruritus_appraiser" placeholder="请选择" >
105
+              <el-select v-model="pruritus_appraiser" placeholder="请选择" style="width:150px;">
107 106
                   <el-option
108 107
                   v-for="item in pruritus_options"
109
-                  :key="item.value"
108
+                  :key="item.id"
110 109
                   :label="item.label"
111
-                  :value="item.value"
112
-                  style="width:150px;">
110
+                  :value="item.id"
111
+                  >
113 112
                   </el-option>
114 113
               </el-select>
115 114
             </div>
@@ -126,6 +125,7 @@
126 125
 <script>
127 126
 import PatientSidebar from '../components/PatientSidebar.vue'
128 127
 import { uParseTime } from '@/utils/tools'
128
+import {savePatientHpressuresore} from '@/api/fallassement'
129 129
 export default {
130 130
   components:{
131 131
     PatientSidebar
@@ -143,14 +143,16 @@ export default {
143 143
       radio2_points:0,
144 144
       radio3_points:0,
145 145
       checked_points:0,
146
-      pruritus_options:[],
146
+      // pruritus_options:[],
147
+      pruritus_options:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
147 148
       pruritus_appraiser:'',
148
-      pruritus_data:this.getTime(new Date()),
149
-      buwei:[{label:'躯体',is_check:false,check:0},{label:'上肢',is_check:false,check:0},{label:'下肢',is_check:false,check:0},{label:'头皮',is_check:false,check:0},],
149
+      pruritus_date:this.getTime(new Date()),
150
+      buwei:[{id:1,label:'躯体',is_check:false,check:0},{id:2,label:'上肢',is_check:false,check:0},{id:3,label:'下肢',is_check:false,check:0},{id:4,label:'头皮',is_check:false,check:0},],
150 151
       chengdu:[{value:1,label:'不要抓(1)'},{value:2,label:'要抓但没有抓痕(2)'},{value:3,label:'抓出抓痕才能止痒(3)'},{value:4,label:'经常抓出抓痕(4)'},{value:5,label:'完全坐立不安(5)'}],
151 152
       pinlv:[{value:1,label:'很少时候(1)'},{value:2,label:'较少时候(2)'},{value:3,label:'较多时候(3)'},{value:4,label:'很多时候(4)'},{value:5,label:'一直持续(5)'}],
152 153
       yingxiang:[{value:0,label:'无影响(0)'},{value:2,label:'一夜痒醒一次(2)'},{value:4,label:'一夜痒醒两次(4)'},{value:6,label:'一夜痒醒三次(6)'}],
153
-      options:[],
154
+      buwei_show:[],
155
+      buwei_show1:[],
154 156
       value:'',
155 157
       value1:'',
156 158
       num:0,
@@ -159,33 +161,64 @@ export default {
159 161
       is_check2:false,
160 162
       check2:0,
161 163
       buwei_input:'',
164
+      Patient_info:{name:'',dialysis_no:''},
162 165
     }
163 166
   },
167
+  created(){
168
+    const id = this.$route.params && this.$route.params.id
169
+    this.patientID = parseInt(id)
170
+  },
164 171
   methods:{
165 172
     // 痒的部位选项
166 173
     handleCheckedCitiesChange(e,item){
174
+      console.log('333333',item);
167 175
       for(let i in this.buwei){
168 176
         if(item.label==this.buwei[i].label){
169 177
           if(item.check==0){
178
+            this.buwei[i].check = 1
179
+            this.buwei[i].is_check = true
170 180
             if(this.num <3){
171 181
               if(this.is_check2 == true){
172 182
                 this.is_check2 = false
173 183
                 this.check = 0
174 184
                 this.checked_points = 0
175 185
               }
176
-              this.buwei[i].check = 1
177
-              this.buwei[i].is_check = true
178 186
               console.log('1111',this.buwei[i]);
179 187
               this.num++
180 188
               this.checked_points = this.checked_points + 1
181 189
             }
182
-            
190
+            if(this.buwei_show1.length >0){
191
+              for(let j in this.buwei_show1){
192
+                if('全身' == this.buwei_show1[j]){
193
+                  let index = this.buwei_show1.indexOf(this.buwei_show1[j]);
194
+                  this.buwei_show1.splice(index,1)
195
+                }
196
+              }
197
+            }
198
+            this.buwei_show.push(item.id)
199
+            this.buwei_show1.push(item.label)
200
+            console.log('this.buwei_show',this.buwei_show);
183 201
           }else{
184 202
             this.buwei[i].check = 0
185 203
             this.buwei[i].is_check = false
186 204
             console.log('2222',this.buwei[i]);
187 205
             this.num--
188 206
             this.checked_points = this.checked_points - 1
207
+            if(this.buwei_show.length >0){
208
+              for(let j in this.buwei_show){
209
+                if(item.id == this.buwei_show[j]){
210
+                  let index = this.buwei_show.indexOf(this.buwei_show[j]);
211
+                  this.buwei_show.splice(index,1)
212
+                }
213
+              }
214
+              for(let j in this.buwei_show1){
215
+                if(item.label == this.buwei_show1[j]){
216
+                  let index = this.buwei_show1.indexOf(this.buwei_show1[j]);
217
+                  this.buwei_show1.splice(index,1)
218
+                }
219
+              }
220
+            }
221
+            console.log('this.buwei_show2',this.buwei_show);
189 222
           }
190 223
         }
191 224
       }
@@ -198,6 +231,9 @@ export default {
198 231
         if(this.is_check2 == false){
199 232
           this.check2 = 1
200 233
           this.is_check2 = true
234
+          this.check1 = 0
235
+          this.is_check1 = false
236
+          this.buwei_show.length = 0
201 237
           this.checked_points =3
202 238
           this.num = 0
203 239
           for(let i in this.buwei){
@@ -206,12 +242,20 @@ export default {
206 242
               this.buwei[i].check = 0
207 243
             }
208 244
           }
245
+          this.buwei_show1.length = 0
246
+          this.buwei_show1.push('全身')
209 247
           console.log('uuuu',this.check2,this.is_check2);
210 248
         }else{
211 249
           this.check2 = 0
212 250
           this.is_check2 = false
213 251
           this.checked_points =0
214 252
           this.num = 0
253
+          for(let j in this.buwei_show1){
254
+            if(ball == this.buwei_show1[j]){
255
+              let index = this.buwei_show1.indexOf(this.buwei_show1[j]);
256
+              this.buwei_show1.splice(index,1)
257
+            }
258
+          }
215 259
           console.log('iiiii',this.check2,this.is_check2);
216 260
         }
217 261
       }
@@ -221,19 +265,38 @@ export default {
221 265
       const ball=e.target.value
222 266
       console.log(ball);
223 267
       if(ball =='其他'){
224
-      console.log('this.is_check1',this.is_check1);
268
+        console.log('this.is_check1',this.is_check1);
225 269
         if(this.is_check1 == false){
270
+          this.check1 = 1
271
+          this.is_check1 = true
272
+          this.check2 = 0
273
+          this.is_check2 = false
226 274
           if(this.num < 3){
227
-            this.check1 = 1
228
-            this.is_check1 = true
229 275
             this.checked_points =this.checked_points + 1
230 276
             this.num++
231 277
           }
278
+          if(this.buwei_show1.length >0){
279
+            for(let j in this.buwei_show1){
280
+              if('全身' == this.buwei_show1[j]){
281
+                let index = this.buwei_show1.indexOf(this.buwei_show1[j]);
282
+                this.buwei_show1.splice(index,1)
283
+              }
284
+            }
285
+          }
286
+          this.buwei_show1.push(ball)
232 287
         }else{
233
-          this.check2 = 0
234
-          this.is_check2 = false
235
-          this.checked_points =this.checked_points - 1
236
-          this.num--
288
+          this.check1 = 0
289
+          this.is_check1 = false
290
+          if(this.num < 3){
291
+            this.checked_points =this.checked_points - 1
292
+            this.num--
293
+          }
294
+          for(let j in this.buwei_show1){
295
+            if(ball == this.buwei_show1[j]){
296
+              let index = this.buwei_show1.indexOf(this.buwei_show1[j]);
297
+              this.buwei_show1.splice(index,1)
298
+            }
299
+          }
237 300
         }
238 301
       }
239 302
     },
@@ -242,33 +305,53 @@ export default {
242 305
       console.log('eeeee',e);
243 306
       if(e == this.radio1){
244 307
         this.radio1_points =e
308
+        this.radio1 = e
245 309
       }
246 310
       if(e == this.radio2){
247 311
         this.radio2_points =e
312
+        this.radio2 = e
248 313
       }
249 314
       if(e == this.radio3){
250 315
         this.radio3_points =e
316
+        this.radio3 = e
251 317
       }
252 318
     },
253 319
     // 确认
254 320
     pruritus_click(){
255
-      var params = {
256
-        radio1:this.radio1,
257
-        radio2:this.radio2,
258
-        radio3:this.radio3,
259
-        pruritus_options:this.pruritus_options,//评估数据
260
-        pruritus_appraiser:this.pruritus_appraiser,//评估人
261
-        pruritus_data:this.pruritus_data,//时间
262
-        pruritus_Totalpoints:this.pruritus_Totalpoints,//总分
263
-        patientID:this.patientID,
264
-        buwei:this.buwei,//部位
265
-        is_check1:this.is_check1,//其它选项model
266
-        check1:this.check1,//其它选项
267
-        is_check2:this.is_check2,//全部选项model
268
-        check2:this.check2,//全部选项
269
-        num:this.num,//控制复选个数
270
-        buwei_input:this.buwei_input//其它的输入框
321
+      const data={}
322
+      var list = []
323
+      data['radio1'] = this.radio1
324
+      data['radio2'] = this.radio2
325
+      data['radio3'] = this.radio3
326
+      data['date'] = this.pruritus_date
327
+      data['appraiser'] = this.pruritus_appraiser
328
+      data['total'] = this.pruritus_Totalpoints
329
+      data['buwei'] = this.buwei_show
330
+      data['is_check1'] = this.is_check1
331
+      data['check1'] = this.check1
332
+      data['buwei_input'] = this.buwei_input
333
+      data['is_check2'] = this.is_check2
334
+      data['check2'] = this.check2
335
+      data['num'] = this.num
336
+      data['buwei1'] = this.buwei_show1
337
+      data['buwei2'] =this.buwei
338
+      data['checked_points'] = this.checked_points
339
+      list.push(data)
340
+      var params={
341
+        patient_id:this.patientID,
342
+        record_date:this.pruritus_date,
343
+        is_type:9,
344
+        list:list,
271 345
       }
346
+     
347
+      console.log('params----',params);
348
+      savePatientHpressuresore(params).then(response =>{
349
+        if(response.data.state == 1){
350
+          const pruit = response.data.data.pedFallssessment
351
+          console.log('11111',pruit)
352
+          this.$message({message:'保存成功',type:'success'})
353
+        }
354
+      })
272 355
     },
273 356
     // 转换时间
274 357
     getTime(val) {
@@ -281,9 +364,22 @@ export default {
281 364
         return uParseTime(val, '{y}-{m}-{d}')
282 365
         }
283 366
     },
367
+    // 历史
284 368
     pruritushistory(){
285
-      this.$router.push({path: '/patients/pruritus_history'})
286
-    }
369
+      this.$router.push({
370
+        path: '/patients/pruritus_history',
371
+        query:{patient_id:this.patientID,
372
+              Patient_info:this.Patient_info}
373
+      })
374
+    },
375
+    // 患者信息
376
+    tranpatient(event){
377
+      console.log('event',event);
378
+      this.Patient_info={
379
+        name:event.name,
380
+        dialysis_no:event.dialysis_no
381
+      }
382
+    },
287 383
   },
288 384
   computed:{
289 385
     pruritus_Totalpoints(){

+ 10 - 0
src/xt_pages/user/history/Children_history.vue 查看文件

@@ -465,30 +465,40 @@ export default{
465 465
             if(fallassessment.sex == this.sex[i].value){
466 466
               this.sex[i].check = 1
467 467
               this.sexvalue = fallassessment.sex
468
+            }else{
469
+              this.sex[i].check = 0
468 470
             }
469 471
           }
470 472
           for(let i in this.diagnosis){
471 473
             if(fallassessment.diagnosis == this.diagnosis[i].value){
472 474
               this.diagnosis[i].check = 1
473 475
               this.diagnosis_val = fallassessment.diagnosis
476
+            }else{
477
+              this.diagnosis[i].check = 0
474 478
             }
475 479
           }
476 480
           for(let i in this.cognize){
477 481
             if(fallassessment.cognize == this.cognize[i].value){
478 482
               this.cognize[i].check = 1
479 483
               this.cognize_val = fallassessment.cognize
484
+            }else{
485
+              this.cognize[i].check = 0
480 486
             }
481 487
           }
482 488
           for(let i in this.environment){
483 489
             if(fallassessment.environment == this.environment[i].value){
484 490
               this.environment[i].check = 1
485 491
               this.environment_val = fallassessment.environment
492
+            }else{
493
+              this.environment[i].check = 0
486 494
             }
487 495
           }
488 496
           for(let i in this.medicine){
489 497
             if(fallassessment.medicine == this.medicine[i].value){
490 498
               this.medicine[i].check = 1
491 499
               this.medicine_val = fallassessment.medicine
500
+            }else{
501
+              this.medicine[i].check = 0
492 502
             }
493 503
           }
494 504
           this.row_id = fallassessment.id

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

@@ -117,9 +117,9 @@
117 117
             <div style="width:100%;margin-top: 20px;">
118 118
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
119 119
               <div style="margin-top: 20px;font-size: 16px;">
120
-                <span>患者姓名:</span>
121
-                <span>透析号:</span>
122
-                <span>打印时间</span>
120
+                <span>患者姓名:{{Patient_info.name}}</span>&nbsp;&nbsp;
121
+                <span>透析号:{{Patient_info.dialysis_no}}</span>&nbsp;&nbsp;
122
+                <span>打印时间:{{dayin}}</span>
123 123
               </div>
124 124
               <table class="tables" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
125 125
                 <tr>
@@ -166,22 +166,22 @@
166 166
         </div>
167 167
 
168 168
         <div id="mingxi" >
169
-          <div class="diedao_content" style="">
169
+          <div class="diedao_content" style="page-break-after: always;" v-for="items in multipleSelection">
170 170
             <div style="width:100%;margin-top: 20px;">
171 171
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
172 172
               <div style="margin-top: 20px;font-size: 16px;">
173
-                <span>患者姓名:</span>
174
-                <span>透析号:</span>
175
-                <span>评估日期:</span>
176
-                <span>责任护士:</span>
177
-                <span>评分</span>
173
+                <span>患者姓名:{{Patient_info.name}}</span>&nbsp;&nbsp;
174
+                <span>透析号:{{Patient_info.dialysis_no}}</span>&nbsp;&nbsp;
175
+                <span>评估日期:{{items.time}}</span>&nbsp;&nbsp;
176
+                <span>责任护士:{{items.evaluate}}</span>&nbsp;&nbsp;
177
+                <span>评分:{{items.mark}}</span>
178 178
               </div>
179 179
               <table class="tables" id="table" border="1" style="width: 100%;border-collapse: collapse;">
180 180
                 <thead>
181 181
                   <tr>
182 182
                     <th  rowspan="2" style="width: 9%">项目/编码</th>
183
-                    <th  colspan="4" style="width: 68%;">分值</th>
184
-                    <th  rowspan="2" style="width: 9%">得分</th>
183
+                    <th  colspan="4" style="width: 72%;">分值</th>
184
+                    <th  rowspan="2" style="width: 5%">得分</th>
185 185
                   </tr>
186 186
                   <tr>
187 187
                     <th >1分</th>
@@ -208,7 +208,7 @@
208 208
                     <td>
209 209
                       没有改变<br>对其讲话有反应,机体没有对疼痛或不适的感觉确失
210 210
                     </td>
211
-                    <td></td>
211
+                    <td>{{items.ganzhi}}</td>
212 212
                   </tr>
213 213
                   <tr class="bg_color start">
214 214
                     <td class="start">
@@ -227,7 +227,7 @@
227 227
                     <td>
228 228
                       很少潮湿<br>皮肤通常是干的,只是按照常规换床单即可
229 229
                     </td>
230
-                    <td></td>
230
+                    <td>{{items.shidu}}</td>
231 231
                   </tr>
232 232
                   <tr class="start">
233 233
                     <td>
@@ -246,7 +246,7 @@
246 246
                     <td>
247 247
                       经常步行<br>每天至少2次室外行走,白天醒着的时候至少每2h行走一次
248 248
                     </td>
249
-                    <td></td>
249
+                    <td>{{items.huodong}}</td>
250 250
                   </tr>
251 251
                   <tr class="bg_color start">
252 252
                     <td>
@@ -265,7 +265,7 @@
265 265
                     <td>
266 266
                       不受限<br>能经常独立地改变躯体或四肢的位置,但变动幅度不大
267 267
                     </td>
268
-                    <td></td>
268
+                    <td>{{items.yidong}}</td>
269 269
                   </tr>
270 270
                   <tr class="start">
271 271
                     <td>
@@ -287,7 +287,7 @@
287 287
                     <td>
288 288
                       营养摄入良好<br>每餐能摄入绝大部分食物从来不拒绝食物,通常吃4份或更多的肉和乳制品,两餐间偶尔进食。不需要其他补充食物
289 289
                     </td>
290
-                    <td></td>
290
+                    <td>{{items.yingyang}}</td>
291 291
                   </tr>
292 292
                   <tr class="bg_color start">
293 293
                     <td>
@@ -306,56 +306,57 @@
306 306
                       能独立在床上或椅子上移动,并且有足够的肌肉力量在移动时完全抬空躯体。在床上和椅子上总是保持良好的位置
307 307
                     </td>
308 308
                     <td></td>
309
+                    <td>{{items.mocha}}</td>
309 310
                   </tr>
310 311
                 </tbody>
311 312
               </table>
312 313
             </div>
313
-            <div style="font-size: 16px;">护理措施:</div>
314
+            <div style="font-size: 16px;margin-bottom:20px">护理措施:{{gethuli(items.hulicuoshi)}}</div>
314 315
             <p style="margin: 10px 0;">说明:总分23分,15~18分为低危;13~14分为中危;10~12分为高危;≤9分为极高危</p>
315 316
             <div style="margin-bottom: 20px;">
316 317
               <p>患者知情同意书:我对住院期间发生导管脱落的风险及预防措施已知晓,并给予配合。</p>
317 318
               <div class="zhuangui">
318 319
                   <p style="display: inline-block; margin-right: 70px;">
319 320
                     患者/家属签字:
320
-                    <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;"></span>
321
+                    <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;">{{items.jiashu}}</span>
321 322
                   </p>
322 323
                   <p style="display: inline-block;">
323 324
                     日期:
324
-                    <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;"></span>
325
+                    <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.jiashu_date}}</span>
325 326
                   </p>
326 327
               </div>
327 328
               <div class="zhuangui">
328 329
                 <span>转归:</span>
329 330
                 <div style="display: inline-block;position: relative;top: 0px;">
330 331
                   <div class="jiange" v-for="item in zhuangui" style="display: inline-block;margin-right: 10px;">
331
-                    <label><input name="ball" type="checkbox"  :value="item" />&nbsp;{{item}}</label>
332
+                    <label><input type="checkbox" :checked="item.id ==items.zhuang_show ? true: false" @click="zhuangcheck(item)" />&nbsp;{{item.value}}</label>
332 333
                   </div>
333 334
                 </div>
334 335
               </div>
335 336
               <div class="zhuangui">
336 337
                   <p style="display: inline-block; margin-right: 30px;">
337 338
                       评估人签字:
338
-                      <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;"></span>
339
+                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.appraiser}}</span>
339 340
                   </p>
340 341
                   <p style="display: inline-block;">
341 342
                       日期:
342
-                      <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;"></span>
343
+                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.pingg_date}}</span>
343 344
                   </p>
344 345
               </div>
345 346
               <div class="content_top">
346 347
                 <div class="zhuangui">
347 348
                   <p style="display: inline-block; margin-right: 30px;">
348 349
                       护士长签字:
349
-                      <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;"></span>
350
+                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.nurse}}</span>
350 351
                   </p>
351 352
                   <p style="display: inline-block;">
352 353
                       日期:
353
-                      <span style="display: inline-block; border-bottom: 1px solid black;width: 50px;"></span>
354
+                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.nurse_date}}</span>
354 355
                   </p>
355 356
                 </div>
356 357
               </div>
357 358
               <div>
358
-                打印时间:
359
+                打印时间:{{dayin}}
359 360
               </div>
360 361
             </div>
361 362
           </div>
@@ -522,7 +523,7 @@
522 523
                     <tr>
523 524
                       <td rowspan="6" style="position: relative;vertical-align: top;">
524 525
                         <div class="jiange" v-for="item in hulicuoshi" >
525
-                          <label><input name="ball" type="checkbox" v-model="item.hulicheck" @click="huli_check(item)" value="football" />&nbsp;{{ item.label }}</label>
526
+                          <label><input name="ball" type="checkbox" v-model="item.is_check" @click="huli_check(item)" value="football" />&nbsp;{{ item.label }}</label>
526 527
                         </div>
527 528
                         <div class="tianjia" @click="add_press=true">
528 529
                           +添加
@@ -587,9 +588,9 @@
587 588
                     <el-select v-model="duty" placeholder="请选择" style="width:120px;">
588 589
                         <el-option
589 590
                           v-for="item in dutyoptions"
590
-                          :key="item.value"
591
+                          :key="item.id"
591 592
                           :label="item.label"
592
-                          :value="item.value"
593
+                          :value="item.id"
593 594
                           >
594 595
                         </el-option>
595 596
                     </el-select>
@@ -619,9 +620,9 @@
619 620
           <div class="zhuangui">
620 621
             <span>转归:</span>
621 622
             <div style="display: inline-block;position: relative;top: 0px;">
622
-              <el-checkbox-group v-model="checkList">
623
-                <el-checkbox v-for="item in zhuangui" :label="item.value" :key="item.id" :value="item.id"></el-checkbox>
624
-              </el-checkbox-group>
623
+              <span v-for="item in zhuangui" style="display: inline-block;margin-right: 10px;">
624
+                <label><input type="checkbox" v-model="item.is_check" @click="zhuangcheck(item)" />{{ item.value }}</label>
625
+              </span>
625 626
             </div>
626 627
           </div>
627 628
           <div class="zhuangui">
@@ -703,10 +704,12 @@
703 704
 <script>
704 705
 import print from 'print-js'
705 706
 import { uParseTime } from '@/utils/tools'
707
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,
708
+  deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
706 709
 export default{
707 710
   data(){
708 711
     return{
709
-      tableData:[{id:1,time:'2023-9-27',ganzhi:'2',shidu:'2',huodong:'3',yidong:'4',yingyang:'1',mocha:'3',mark:'15',evaluate:'千亦雪'}],
712
+      tableData:[],
710 713
       multipleSelection:[],
711 714
       dialogVisible:false,
712 715
       mingxi_dialogVisible:false,
@@ -720,7 +723,7 @@ export default{
720 723
       yingyang:null,
721 724
       mocha:null,
722 725
       add_press:false,
723
-      zhuangui:[{id:1,value:'出院'},{id:2,value:'死亡'},{id:3,value:'其他'}],
726
+      zhuangui:[{id:1,value:'出院',is_check:false,check:0},{id:2,value:'死亡',is_check:false,check:0},{id:3,value:'其他',is_check:false,check:0}],
724 727
       value1:'',
725 728
       checkList:[],
726 729
       input:'',
@@ -730,7 +733,7 @@ export default{
730 733
       date:this.getTime(new Date()),
731 734
       huli_value:'',
732 735
       family_date:this.getTime(new Date()),
733
-      dutyoptions:[],
736
+      dutyoptions:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
734 737
       duty:'',
735 738
       family_member:'',
736 739
       appraiser:'',
@@ -740,17 +743,35 @@ export default{
740 743
       nurse_date:this.getTime(new Date()),
741 744
       hulicheckarr:[],
742 745
       patientID:0,
743
-      hulicuoshi:[{id:1,label:'挂床头警示标识',hulicheck:0},{id:2,label:'保护受压皮肤,使用减压用具(气垫床/压疮床)',hulicheck:0},{id:3,label:'定时翻身,移动避免拖拉',hulicheck:0}
744
-                ,{id:4,label:'加强营养',hulicheck:0},{id:5,label:'保持被衣物清洁舒适',hulicheck:0},{id:6,label:'其他',hulicheck:0}]
746
+      limit:10,
747
+      page:1,
748
+      patient_id:'',
749
+      Patient_info:{},
750
+      zhuang_show:'',//转归
751
+      press_zong:0,
752
+      row_id:0,
753
+      dayin:this.getTime2(new Date()),
754
+      hulicuoshi:[{id:1,label:'挂床头警示标识',hulicheck:0,is_check:false},{id:2,label:'保护受压皮肤,使用减压用具(气垫床/压疮床)',hulicheck:0,is_check:false},
755
+      {id:3,label:'定时翻身,移动避免拖拉',hulicheck:0,is_check:false},{id:4,label:'加强营养',hulicheck:0,is_check:false},
756
+      {id:5,label:'保持被衣物清洁舒适',hulicheck:0,is_check:false},{id:6,label:'其他',hulicheck:0,is_check:false}],
745 757
     }
746 758
   },
759
+  created(){
760
+    this.patient_id = this.$route.query.patient_id
761
+    this.Patient_info = this.$route.query.Patient_info
762
+    this.getlist()
763
+  },
747 764
   methods:{
765
+    // 返回
748 766
     fanhui(){
749 767
       window.history.go(-1);
750 768
     },
769
+    // 选中条数
751 770
     handleSelectionChange(val) {
752 771
       this.multipleSelection = val;
772
+      console.log('val',val);
753 773
     },
774
+    // 评分弹窗
754 775
     open_pingfen(){
755 776
       if(this.multipleSelection.length==0){
756 777
         this.$message('至少选择一条数据')
@@ -758,6 +779,7 @@ export default{
758 779
         this.dialogVisible=true
759 780
       }
760 781
     },
782
+    // 明细弹窗
761 783
     open_mingxi(){
762 784
       if(this.multipleSelection.length==0){
763 785
         this.$message('至少选择一条数据')
@@ -765,21 +787,82 @@ export default{
765 787
         this.mingxi_dialogVisible=true
766 788
       }
767 789
     },
790
+    // 编辑弹窗
768 791
     open_editor(row){
792
+      this.row_id = row.id
769 793
       this.editor_dialogVisible =true
794
+      getPedPatientFallAssessmentById(row.id).then(response =>{
795
+        if(response.data.state == 1){
796
+          const press = response.data.data.fallassessment
797
+
798
+          for(let i in this.hulicuoshi){
799
+            this.hulicuoshi[i].is_check = false
800
+            this.hulicuoshi[i].hulicheck = 0
801
+            this.hulicheckarr.length=0
802
+          }
803
+          if(press.text !=''){
804
+            const text = JSON.parse(press.text)
805
+            this.date = text.date
806
+            this.ganzhi = text.ganzhi
807
+            this.shidu = text.shidu
808
+            this.huodong = text.huodong
809
+            this.yidong = text.yidong
810
+            this.yingyang = text.yingyang
811
+            this.mocha = text.mocha
812
+            this.mark = text.mark
813
+            this.duty = text.duty
814
+            // this.duty = this.getoptions(text.duty)
815
+            this.family_member = text.jiashu
816
+            this.family_date = text.jiashu_date
817
+            this.appraiser = text.appraiser
818
+            this.appraiser_date = text.pingg_date
819
+            this.nurse = text.nurse
820
+            this.nurse_date = text.nurse_date
821
+            for(let i in this.hulicuoshi){
822
+              for(let j in text.hulicuoshi){
823
+                if(this.hulicuoshi[i].id == text.hulicuoshi[j]){
824
+                  this.hulicuoshi[i].is_check = true
825
+                  this.hulicuoshi[i].hulicheck = 1
826
+                  this.hulicheckarr.push(text.hulicuoshi[j])
827
+                }
828
+              }
829
+            }
830
+            this.zhuang_show = text.zhuang_show
831
+            for(let i in this.zhuangui){
832
+              if(this.zhuang_show == this.zhuangui[i].id){
833
+                this.zhuangui[i].is_check =true
834
+                this.zhuangui[i].check = 1
835
+              }else{
836
+                this.zhuangui[i].is_check =false
837
+                this.zhuangui[i].check = 0
838
+              }
839
+            }
840
+            // this.hulicheckarr = text.hulicuoshi
841
+          }
842
+        }
843
+      })
770 844
     },
845
+    // 删除弹窗
771 846
     open_delete(row){
772 847
       this.row=row.id
773 848
       this.delete_centerDialogVisible=true
774 849
     },
850
+    // 确认删除
775 851
     delete_press(){
776
-      for(let i=0;i<this.tableData.length;i++){
777
-        if(this.row==this.tableData[i].id){
778
-          this.tableData.splice(i,1)
852
+      deletePedPatientFallassment(this.row).then(response =>{
853
+        if(response.data.state == 1){
854
+          for(let i=0;i<this.tableData.length;i++){
855
+            if(this.row==this.tableData[i].id){
856
+              this.tableData.splice(i,1)
857
+            }
858
+          }
859
+          this.$message({message:'删除成功',type:'success'})
779 860
         }
780
-      }
861
+      })
781 862
       this.delete_centerDialogVisible=false
863
+      return this.tableData
782 864
     },
865
+    // 打印
783 866
     print_pingfen(id){
784 867
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
785 868
       if(id==1){
@@ -814,34 +897,103 @@ export default{
814 897
     },
815 898
     // 点击护理措施
816 899
     huli_check(item){
817
-      this.hulicheckarr.push(item)
818
-      console.log('33333',item);
900
+      for(let i in this.hulicuoshi){
901
+        if(item.label==this.hulicuoshi[i].label ){
902
+          if(item.is_check==false){
903
+            this.hulicuoshi[i].hulicheck=1
904
+            this.hulicuoshi[i].is_check=true
905
+            this.hulicheckarr.push(item.id)
906
+          }else{
907
+            this.hulicuoshi[i].hulicheck = 0
908
+            this.hulicuoshi[i].is_check = false
909
+            if(this.hulicheckarr.length>0){
910
+              for(let j in this.hulicheckarr){
911
+                if(item.id == this.hulicheckarr[j]){
912
+                  let index = this.hulicheckarr.indexOf(this.hulicheckarr[j]);
913
+                  this.hulicheckarr.splice(index,1)
914
+                }
915
+              }
916
+            }
917
+          }
918
+        }
919
+      }
920
+    },
921
+    // 转归
922
+    zhuangcheck(item){
923
+      for(let i in this.zhuangui){
924
+        if(item.id == this.zhuangui[i].id){
925
+          this.zhuangui[i].is_check =true
926
+          this.zhuangui[i].check = 1
927
+          this.zhuang_show = item.id
928
+        }else{
929
+          this.zhuangui[i].is_check =false
930
+          this.zhuangui[i].check = 0
931
+        }
932
+      }
819 933
     },
820 934
     // 确认
821 935
     Pressuresore(){
936
+      const data = {}
937
+      var list = []
938
+      data['date'] = this.date
939
+      data['ganzhi'] = this.ganzhi
940
+      data['shidu'] = this.shidu
941
+      data['huodong'] = this.huodong
942
+      data['yidong'] = this.yidong
943
+      data['yingyang'] = this.yingyang
944
+      data['mocha'] = this.mocha
945
+      data['mark'] = this.mark
946
+      data['duty'] = this.duty
947
+      data['jiashu'] = this.family_member
948
+      data['jiashu_date'] = this.family_date
949
+      data['appraiser'] = this.appraiser
950
+      data['pingg_date'] = this.appraiser_date
951
+      data['nurse'] = this.nurse
952
+      data['nurse_date'] = this.nurse_date
953
+      data['zhuang_show'] = this.zhuang_show
954
+      data['hulicuoshi'] = this.hulicheckarr
955
+      list.push(data)
822 956
       var params={
823
-        date:this.date,
824
-        ganzhi:this.ganzhi,
825
-        shidu:this.shidu,
826
-        huodong:this.huodong,
827
-        yidong:this.yidong,
828
-        yingyang:this.yingyang,
829
-        mocha:this.mocha,
830
-        mark:this.mark,
831
-        duty:this.duty,
832
-        dutyoptions:this.dutyoptions,
833
-        family_member:this.family_member,
834
-        family_date:this.family_date,
835
-        appraiser:this.appraiser,//评估人签字
836
-        appraiser_date:this.appraiser_date,
837
-        nurse:this.nurse,
838
-        nurse_options:this.nurse_options,
839
-        nurse_date:this.nurse_date,
840
-        patientID:this.patientID,
841
-        checkList:this.checkList
957
+        patient_id:this.patientID,
958
+        record_date:this.date,
959
+        is_type:1,
960
+        list:list,
961
+        id:this.row_id
842 962
       }
963
+      updateBedPatientList(params).then(response =>{
964
+        if(response.data.state ==1){
965
+          const press = response.data.data.pedFallssessment
966
+          console.log('press',press);
967
+          const text = JSON.parse(press.text)
968
+          for(let i in this.tableData){
969
+            if(press.id == this.tableData[i].id){
970
+                this.tableData[i].id = press.id,
971
+                this.tableData[i].time = text.date,
972
+                this.tableData[i].ganzhi = text.ganzhi,
973
+                this.tableData[i].shidu = text.shidu,
974
+                this.tableData[i].huodong = text.huodong,
975
+                this.tableData[i].yidong = text.yidong,
976
+                this.tableData[i].yingyang = text.yingyang,
977
+                this.tableData[i].mocha = text.mocha,
978
+                this.tableData[i].mark = text.mark,
979
+                this.tableData[i].evaluate = this.getoptions(text.duty),
980
+                this.tableData[i].jiashu = text.jiashu,
981
+                this.tableData[i].jiashu_date = text.jiashu_date,
982
+                this.tableData[i].appraiser = text.appraiser,
983
+                this.tableData[i].pingg_date = text.pingg_date,
984
+                this.tableData[i].nurse = text.nurse,
985
+                this.tableData[i].nurse_date = text.nurse_date,
986
+                this.tableData[i].zhuang_show = text.zhuang_show,
987
+                this.tableData[i].hulicuoshi = text.hulicuoshi
988
+            }
989
+          }
990
+
991
+        }
992
+      })
993
+      this.$message({message:'修改成功',type:'success'})
843 994
       this.editor_dialogVisible=false,
844 995
       console.log('33333',params);
996
+      return this.tableData
845 997
     },
846 998
     // 转换时间
847 999
     getTime(val) {
@@ -854,10 +1006,93 @@ export default{
854 1006
         return uParseTime(val, '{y}-{m}-{d}')
855 1007
         }
856 1008
     },
1009
+    getTime2(val) {
1010
+        if(val < 0){
1011
+          return ""
1012
+        }
1013
+        if(val == ""){
1014
+        return ""
1015
+        }else {
1016
+        return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
1017
+        }
1018
+    },
1019
+    // 数据源
1020
+    getlist(){
1021
+      var params = {
1022
+        patient_id:this.patient_id,
1023
+        limit:this.limit,
1024
+        is_type:1,
1025
+        page:this.page,
1026
+      }
1027
+      getPatientBedlist(params).then(response =>{
1028
+        if(response.data.state ==1){
1029
+          const list = response.data.data.list
1030
+          list.forEach(item => {
1031
+            if(item.text !=''){
1032
+              const text =JSON.parse(item.text)
1033
+              console.log('text',text);
1034
+              const arr ={ 
1035
+                id:item.id,
1036
+                time:text.date,
1037
+                ganzhi:text.ganzhi,
1038
+                shidu:text.shidu,
1039
+                huodong:text.huodong,
1040
+                yidong:text.yidong,
1041
+                yingyang:text.yingyang,
1042
+                mocha:text.mocha,
1043
+                mark:text.mark,
1044
+                evaluate:this.getoptions(text.duty),
1045
+                jiashu:text.jiashu,
1046
+                jiashu_date:text.jiashu_date,
1047
+                appraiser:text.appraiser,
1048
+                pingg_date:text.pingg_date,
1049
+                nurse:text.nurse,
1050
+                nurse_date:text.nurse_date,
1051
+                zhuang_show:text.zhuang_show,
1052
+                hulicuoshi:text.hulicuoshi
1053
+              }
1054
+              this.tableData.push(arr)
1055
+            }
1056
+          });
1057
+          console.log('11111',list);
1058
+        }
1059
+      })
1060
+    },
1061
+    // 评估人
1062
+    getoptions(ids){
1063
+     const options= this.dutyoptions
1064
+      for(let i in options){
1065
+        if(options[i].id == ids){
1066
+          return options[i].label
1067
+        }
1068
+      }
1069
+    },
1070
+    // 护理
1071
+    gethuli(item){
1072
+      var arr =[]
1073
+      for(let i in item){
1074
+        console.log(item[0]);
1075
+        for(let j in this.hulicuoshi){
1076
+          if(item[i] == this.hulicuoshi[j].id){
1077
+            arr.push(this.hulicuoshi[j].label)
1078
+          }
1079
+        }
1080
+        var arr2 = arr.join()
1081
+          console.log('arr2',arr2);
1082
+      }
1083
+      return arr2
1084
+    }
857 1085
   },
858 1086
   computed:{
859
-    mark(){
860
-      return this.ganzhi*1 + this.shidu*1 + this.huodong*1 + this.yidong*1 + this.mocha*1 + this.yingyang*1
1087
+    mark:{
1088
+      get(){
1089
+        this.press_zong = this.ganzhi*1 + this.shidu*1 + this.huodong*1 + this.yidong*1 + this.mocha*1 + this.yingyang*1
1090
+        return this.press_zong 
1091
+      },
1092
+      set(val){
1093
+        return this.press_zong = val
1094
+      }
1095
+      
861 1096
     }
862 1097
   }
863 1098
 }

+ 218 - 50
src/xt_pages/user/history/RASS_history.vue 查看文件

@@ -37,13 +37,13 @@
37 37
             align="center">
38 38
           </el-table-column>
39 39
           <el-table-column
40
-            prop="mark"
40
+            prop="Losradio"
41 41
             label="LOS评分"
42 42
             width=""
43 43
             align="center">
44 44
           </el-table-column>
45 45
           <el-table-column
46
-            prop="mark"
46
+            prop="rassradio"
47 47
             label="RASS评分"
48 48
             width=""
49 49
             align="center">
@@ -78,7 +78,7 @@
78 78
       <div>
79 79
         <el-table
80 80
           ref="multipleTable"
81
-          :data="tableData"
81
+          :data="tengtable"
82 82
           border
83 83
           tooltip-effect="dark"
84 84
           :header-cell-style="{
@@ -99,7 +99,7 @@
99 99
             align="center">
100 100
           </el-table-column>
101 101
           <el-table-column
102
-            prop="name"
102
+            prop="tool"
103 103
             label="疼痛工具"
104 104
             width=""
105 105
             align="center">
@@ -143,9 +143,9 @@
143 143
             <div style="width:100%">
144 144
               <div style="text-align: center;"><h1>血液透析中心住院患者导管脱落危险因素评估记录</h1></div>
145 145
               <div style="margin-top: 20px;font-size: 16px;">
146
-                <span>患者姓名:</span>
147
-                <span>透析号:</span>
148
-                <span>打印时间</span>
146
+                <span>患者姓名:{{Patient_info.name}}</span>&nbsp;&nbsp;
147
+                <span>透析号:{{Patient_info.dialysis_no}}</span>&nbsp;&nbsp;
148
+                <span>打印时间:{{dayin}}</span>
149 149
               </div>
150 150
               <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
151 151
                 <tr>
@@ -157,8 +157,8 @@
157 157
 
158 158
                 <tr v-for="(item,index) in multipleSelection" :key="index">
159 159
                   <td>{{ item.time }}</td>
160
-                  <td></td>
161
-                  <td>{{ item.mark }}</td>
160
+                  <td>{{ item.Losradio }}</td>
161
+                  <td>{{ item.rassradio }}</td>
162 162
                   <td>{{ item.evaluate }}</td>
163 163
                 </tr>
164 164
               </table>
@@ -180,9 +180,9 @@
180 180
             <div style="width:100%">
181 181
               <div style="text-align: center;"><h1>血液透析中心住院患者导管脱落危险因素评估记录</h1></div>
182 182
               <div style="margin-top: 20px;font-size: 16px;">
183
-                <span>患者姓名:</span>
184
-                <span>透析号:</span>
185
-                <span>打印时间</span>
183
+                <span>患者姓名:{{Patient_info.name}}</span>&nbsp;&nbsp;
184
+                <span>透析号:{{Patient_info.dialysis_no}}</span>&nbsp;&nbsp;
185
+                <span>打印时间:{{dayin}}</span>
186 186
               </div>
187 187
               <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
188 188
                 <tr>
@@ -194,7 +194,7 @@
194 194
 
195 195
                 <tr v-for="(item,index) in tengtongvalue" :key="index">
196 196
                   <td>{{ item.time }}</td>
197
-                  <td></td>
197
+                  <td>{{ item.tool }}</td>
198 198
                   <td>{{ item.mark }}</td>
199 199
                   <td>{{ item.evaluate }}</td>
200 200
                 </tr>
@@ -208,7 +208,7 @@
208 208
     <el-dialog
209 209
       title="提示"
210 210
       :visible.sync="mingxi_dialogVisible"
211
-      width="67%"
211
+      width="70%"
212 212
       >
213 213
       <div>
214 214
         <div style="">
@@ -216,15 +216,15 @@
216 216
         </div>
217 217
 
218 218
         <div id="mingxi" >
219
-          <div class="diedao_content" style="page-break-after: always;" v-for="i in multipleSelection">
219
+          <div class="diedao_content" style="page-break-after: always;" v-for="items in multipleSelection">
220 220
             <div style="width:100%;margin-top: 20px;">
221 221
               <div style="text-align: center;"><h1>血液透析中心RASS评估记录</h1></div>
222 222
               <div style="margin-top: 20px;font-size: 16px;">
223
-                <span>患者姓名:</span>
224
-                <span>透析号:</span>
225
-                <span>评估日期:</span>
226
-                <span>评估护士:</span>
227
-                <span>总分</span>
223
+                <span>患者姓名:{{Patient_info.name}}</span>&nbsp;&nbsp;
224
+                <span>透析号:{{Patient_info.dialysis_no}}</span>&nbsp;&nbsp;
225
+                <span>评估日期:{{items.time}}</span>&nbsp;&nbsp;
226
+                <span>评估护士:{{items.evaluate}}</span>&nbsp;&nbsp;
227
+                <span>总分:{{items.mark}}</span>
228 228
               </div>
229 229
                 <table class="table" border="1" style="width: 100%;border-collapse:collapse;margin-bottom:30px">
230 230
                   <thead>
@@ -235,14 +235,9 @@
235 235
                   <tbody>
236 236
                     <tr v-for="(item, index) in LOS" :key="index" :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
237 237
                       <td style="padding: 5px;">
238
-                        <div class="rightjiange" style="position: relative;">
239
-                          <label style="">
240
-                            <input type="radio" name="ball" :value="item.label" v-model="RAssradio"  @change="handleCheckedCitiesChange(item)"/>
241
-                            <div style="display: inline-block;">{{ item.title }}</div>&nbsp;
242
-                            <div :style="{'display': 'inline-block','position': 'absolute'}">
243
-                                {{ item.label }}
244
-                            </div>
245
-                          </label>
238
+                        <div class="rightjiange" style="position: relative;"><!--v-model="items.Losradio"-->
239
+                          <el-radio v-model="items.Losradio" :label="item.value"><span>{{ item.title }}</span> {{ item.label }}</el-radio>
240
+             
246 241
                         </div>
247 242
                       </td>
248 243
                     </tr>
@@ -263,13 +258,8 @@
263 258
                             :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
264 259
                               <td style='height: 40px;'>
265 260
                                 <div class="rightjiange" style="position: relative;">
266
-                                  <label style="">
267
-                                    <input type="radio" name="ball" :value="item.label" v-model="RAssradio"  @change="handleCheckedCitiesChange(item)"/>
268
-                                    <div style="display: inline-block;">{{ item.title }}</div>&nbsp;
269
-                                    <div :style="{'display': 'inline-block','position': 'absolute','top':index ==4 ? '-8px':'0px','overflow': 'auto',}">
270
-                                        {{ item.label }}
271
-                                    </div>
272
-                                  </label>
261
+                                  <el-radio class="elradio" v-model="items.rassradio" :label="item.value"><span>{{ item.title }}</span> {{ item.label }}</el-radio>
262
+                                  
273 263
                                 </div>
274 264
                               </td>
275 265
                             </tr>
@@ -281,13 +271,7 @@
281 271
                             :style="{'background':(index==0 || index % 2==0) ?'rgb(243, 240, 240)':'white'}">
282 272
                               <td style='height: 40px;'>
283 273
                                 <div class="rightjiange" style="position: relative;">
284
-                                  <label style="">
285
-                                    <input type="radio" name="ball" :value="item.label" v-model="RAssradio"  @change="handleCheckedCitiesChange(item)"/>
286
-                                    <div style="display: inline-block;">{{ item.title2 }}</div>&nbsp;
287
-                                    <div style="display: inline-block; overflow: auto;">
288
-                                        {{ item.label }}
289
-                                    </div>
290
-                                  </label>
274
+                                  <el-radio class="elradio" v-model="items.rassradio" :label="item.value"><span>{{ item.title2 }}</span> {{ item.label }}</el-radio> 
291 275
                                 </div>
292 276
                               </td>
293 277
                             </tr>
@@ -296,7 +280,7 @@
296 280
                     </tr>
297 281
                   </tbody>
298 282
                 </table>
299
-              <div style="font-size: 16px;">打印时间:</div>
283
+              <div style="font-size: 16px;">打印时间:{{ dayin }}</div>
300 284
             </div>
301 285
           </div>
302 286
         </div>
@@ -318,6 +302,9 @@
318 302
 </template>
319 303
 <script>
320 304
 import print from 'print-js'
305
+import { uParseTime } from '@/utils/tools'
306
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,
307
+  deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
321 308
 export default{
322 309
   data(){
323 310
     return{
@@ -329,8 +316,15 @@ export default{
329 316
       mingxi_dialogVisible:false,
330 317
       delete_centerDialogVisible:false,
331 318
       row:'',
332
-
333
-      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:1,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
319
+      limit:10,
320
+      page:1,
321
+      patient_id:'',
322
+      Patient_info:{},
323
+      RAssradio:'',
324
+      dayin:this.getTime2(new Date()),
325
+      num:1,
326
+      rassoptions:[{admin_user_id:1,user_name:'寒千落'},{admin_user_id:2,user_name:'千仞雪'},{admin_user_id:3,user_name:'千亦雪'}],
327
+      tengtable:[],
334 328
       LOS:[{title:'0分', label:'清醒',value:0},{title:'1分', label:'有些昏昏欲睡,但容易唤醒',value:1},
335 329
             {title:'2分', label:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态',value:2},
336 330
             {title:'3分', label:'无意识,无法唤醒',value:3},{title:'S分', label:'正常意识,容易唤醒',value:'s'}
@@ -347,18 +341,32 @@ export default{
347 341
               {title2:'+3分', label:'非常焦虑激动的:牵拉或拔除管道,容易焦虑不安',value:3},
348 342
               {title2:'+4分', label:'好斗的好战的:过于好斗,有暴力倾向,对医护人员有攻击行为',value:4},
349 343
             ],
344
+      RassGJ:[{value:1,label:'NRS'},{value:2,label:'表情法'},{value:3,label:'视觉模拟法'},{value:4,label:'语言描述法'},
345
+              {value:5,label:'行为学评估量表'},{value:6,label:'其他'}],
350 346
     }
351 347
   },
348
+  created(){
349
+    this.patient_id = this.$route.query.patient_id
350
+    this.Patient_info = this.$route.query.Patient_info
351
+    this.getRass_list()
352
+    this.getteng_list()
353
+  },
352 354
   methods:{
355
+    // 返回
353 356
     fanhui(){
354 357
       window.history.go(-1);
355 358
     },
359
+    // rass选中条数
356 360
     handleSelectionChange(val) {
357 361
       this.multipleSelection = val;
362
+      console.log('val',this.multipleSelection);
358 363
     },
364
+    // 疼痛选中条数
359 365
     teng_SelectionChanges(val){
360 366
       this.tengtongvalue = val
367
+      console.log('teng',this.tengtongvalue);
361 368
     },
369
+    // rass打印
362 370
     Rass_pingfen(ids){
363 371
       if(this.multipleSelection.length==0){
364 372
         this.$message('请选择需要打印的记录')
@@ -370,6 +378,7 @@ export default{
370 378
         }
371 379
       }
372 380
     },
381
+    // 疼痛打印
373 382
     tengtong_open(){
374 383
       if(this.tengtongvalue.length==0){
375 384
         this.$message('请选择需要打印的记录')
@@ -398,6 +407,7 @@ export default{
398 407
       }
399 408
 
400 409
     },
410
+    // 打印疼痛
401 411
     print_teng(){
402 412
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
403 413
       printJS({
@@ -408,22 +418,166 @@ export default{
408 418
       })
409 419
       this.teng_dialogVisible=false
410 420
     },
421
+    // 疼痛删除弹出
411 422
     teng_dele(row){
423
+      this.num =2
412 424
       this.row=row.id
413 425
       this.delete_centerDialogVisible=true
414 426
     },
427
+    // 删除弹出
415 428
     RASS_delete(row){
429
+      this.num =1
416 430
       this.row=row.id
417 431
       this.delete_centerDialogVisible=true
418 432
     },
433
+    // 确认删除
419 434
     deletes(){
420
-      for(let i=0;i<this.tableData.length;i++){
421
-        if(this.row==this.tableData[i].id){
422
-          this.tableData.splice(i,1)
435
+      
436
+      deletePedPatientFallassment(this.row).then(response =>{
437
+        if(response.data.state == 1){
438
+          if(this.num ==1){
439
+            for(let i=0;i<this.tableData.length;i++){
440
+              if(this.row==this.tableData[i].id){
441
+                this.tableData.splice(i,1)
442
+              }
443
+            }
444
+          }else{
445
+            for(let i=0;i<this.tengtable.length;i++){
446
+              if(this.row==this.tengtable[i].id){
447
+                this.tengtable.splice(i,1)
448
+              }
449
+            }
450
+          }
451
+          this.$message({message:'删除成功',type:'success'})
423 452
         }
424
-      }
453
+      })
425 454
       this.delete_centerDialogVisible=false
426
-    }
455
+      return this.tableData
456
+    },
457
+    // 转换时间
458
+    getTime(val) {
459
+        if(val < 0){
460
+          return ""
461
+        }
462
+        if(val == ""){
463
+        return ""
464
+        }else {
465
+        return uParseTime(val, '{y}-{m}-{d}')
466
+        }
467
+    },
468
+    getTime2(val) {
469
+        if(val < 0){
470
+          return ""
471
+        }
472
+        if(val == ""){
473
+        return ""
474
+        }else {
475
+        return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
476
+        }
477
+    },
478
+    // RASS数据源
479
+    getRass_list(){
480
+      var params = {
481
+        patient_id:this.patient_id,
482
+        limit:this.limit,
483
+        is_type:5,
484
+        page:this.page,
485
+      }
486
+      getPatientBedlist(params).then(response =>{
487
+        if(response.data.state ==1){
488
+          const Rass = response.data.data.list
489
+          Rass.forEach(item => {
490
+            if(item.text != ''){
491
+              const text = JSON.parse(item.text)
492
+              console.log('text',text);
493
+              const arr ={
494
+                id:item.id,
495
+                time:text.date,
496
+                rassradio:text.rassradio,
497
+                Losradio:text.Losradio,
498
+                Rass_num : text.Rass_num,
499
+                mark:text.total,
500
+                evaluate:this.getoptions(text.appraiser),
501
+                
502
+              }
503
+              
504
+              this.tableData.push(arr)
505
+            }
506
+          });
507
+        }
508
+      })
509
+    },
510
+    // 疼痛数据源
511
+    getteng_list(){
512
+      var params = {
513
+        patient_id:this.patient_id,
514
+        limit:this.limit,
515
+        is_type:13,
516
+        page:this.page,
517
+      }
518
+      getPatientBedlist(params).then(response =>{
519
+        if(response.data.state ==1){
520
+          const Rass = response.data.data.list
521
+          Rass.forEach(item => {
522
+            if(item.text != ''){
523
+              const text = JSON.parse(item.text)
524
+              console.log('text',text);
525
+              const arr ={
526
+                id:item.id,
527
+                time:text.date,
528
+                // tool:this.getRassGJ(text.RassGJradio),
529
+                tool:text.RassGJradio,
530
+                mark:text.total,
531
+                qita:text.qita_val,
532
+                evaluate:this.getoptions(text.appraiser),
533
+              }
534
+              // if(arr.tool=='其他'){
535
+              //   arr.mark = arr.qita
536
+              // }
537
+              if(arr.tool==6){
538
+                arr.mark = arr.qita
539
+              }
540
+             arr.tool= this.getRassGJ(arr.tool)
541
+              console.log('1111',arr);
542
+              this.tengtable.push(arr)
543
+              // if(this.tengtable.length>0){
544
+              //   for(let i in this.tengtable){
545
+              //     if(this.tengtable[i].tool==6){
546
+              //       this.tengtable[i].mark = this.tengtable[i].qita
547
+              //     }
548
+              //     // this.getRassGJ(this.tengtable[i].tool)
549
+              //     // console.log('111111',this.tengtable);
550
+              //   }
551
+                
552
+              // }
553
+              
554
+            }
555
+          });
556
+        }
557
+      })
558
+    },
559
+    // 评估人
560
+    getoptions(ids){
561
+     const options= this.rassoptions
562
+      for(let i in options){
563
+        if(options[i].admin_user_id == ids){
564
+          return options[i].user_name
565
+        }
566
+      }
567
+    },
568
+    // 疼痛工具
569
+    getRassGJ(ids){
570
+      const teng = this.RassGJ
571
+      for(let i in teng){
572
+        if(ids == teng[i].value){
573
+          return teng[i].label
574
+        }
575
+      }
576
+    },
577
+    // getqita(ids,){
578
+    //   if()
579
+    // }
580
+
427 581
   }
428 582
 }
429 583
 </script>
@@ -447,4 +601,18 @@ export default{
447 601
 input{
448 602
   -webkit-appearance: checkbox;
449 603
 }
604
+// .elradio{
605
+//   display: flex;
606
+//   /deep/.el-radio__label{
607
+//     white-space: normal !important;  /* 换行 */
608
+//   }
609
+// }
610
+</style>
611
+<style>
612
+.elradio{
613
+  display: flex;
614
+  .el-radio__label{
615
+    white-space: normal;  /* 换行 */
616
+  }
617
+}
450 618
 </style>

+ 283 - 90
src/xt_pages/user/history/daoguan_history.vue 查看文件

@@ -37,25 +37,25 @@
37 37
             align="center">
38 38
           </el-table-column>
39 39
           <el-table-column
40
-            prop="name"
40
+            prop="radio"
41 41
             label="脱管后风险程度"
42 42
             width="130"
43 43
             align="center">
44 44
           </el-table-column>
45 45
           <el-table-column
46
-            prop="name"
46
+            prop="radio1"
47 47
             label="患者意识程度"
48 48
             width="130"
49 49
             align="center">
50 50
           </el-table-column>
51 51
           <el-table-column
52
-            prop="name"
52
+            prop="radio2"
53 53
             label="患者配合程度"
54 54
             width="130"
55 55
             align="center">
56 56
           </el-table-column>
57 57
           <el-table-column
58
-            prop="name"
58
+            prop="cuoshi_show"
59 59
             label="护理措施"
60 60
             width=""
61 61
             align="center">
@@ -99,9 +99,9 @@
99 99
             <div style="width:100%">
100 100
               <div style="text-align: center;"><h1>血液透析中心住院患者导管脱落危险因素评估记录</h1></div>
101 101
               <div style="margin-top: 20px;font-size: 16px;">
102
-                <span>患者姓名</span>
103
-                <span>透析号</span>
104
-                <span>打印时间</span>
102
+                <span>患者姓名:{{ Patient_info.name }}</span>
103
+                <span>透析号:{{ Patient_info.dialysis_no }}</span>
104
+                <span>打印时间:{{ dayin }}</span>
105 105
               </div>
106 106
               <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
107 107
                 <tr>
@@ -116,10 +116,10 @@
116 116
 
117 117
                 <tr v-for="(item,index) in multipleSelection" :key="index">
118 118
                   <td>{{ item.time }}</td>
119
-                  <td></td>
120
-                  <td></td>
121
-                  <td></td>
122
-                  <td></td>
119
+                  <td>{{ item.radio }}</td>
120
+                  <td>{{ item.radio1 }}</td>
121
+                  <td>{{ item.radio2 }}</td>
122
+                  <td>{{ item.cuoshi_show }}</td>
123 123
                   <td>{{ item.mark }}</td>
124 124
                   <td>{{ item.evaluate }}</td>
125 125
                 </tr>
@@ -146,17 +146,17 @@
146 146
         </div>
147 147
 
148 148
         <div id="mingxi" >
149
-          <div class="diedao_content" style="page-break-after: always;" v-for="i in multipleSelection">
149
+          <div class="diedao_content" style="page-break-after: always;" v-for="items in multipleSelection">
150 150
             <div style="width:100%;margin-top: 20px;">
151 151
               <div style="text-align: center;"><h1>血液透析中心住院患者导管脱落危险因素评估记录</h1></div>
152 152
               <div style="margin-top: 20px;font-size: 16px;">
153
-                <span>患者姓名</span>
154
-                <span>透析号</span>
155
-                <span>评估日期</span>
156
-                <span>评估护士:</span>
157
-                <span>总分</span>
153
+                <span>患者姓名:{{ Patient_info.name }}</span>
154
+                <span>透析号:{{ Patient_info.dialysis_no }}</span>
155
+                <span>评估日期:{{ items.time }}</span>
156
+                <span>责任护士:{{ items.evaluate}}</span>
157
+                <span>总分:{{ items.mark }}</span>
158 158
               </div>
159
-              <table  border="1" style="width: 100%; border-collapse:collapse ;">
159
+              <table class="table" border="1" style="width: 100%; border-collapse:collapse ;">
160 160
                 <thead>
161 161
                   <tr>
162 162
                       <th style="width: 15%;">项目</th>
@@ -169,22 +169,21 @@
169 169
                     <td class="start">A.脱管后风险程度</td>
170 170
                     <td>
171 171
                       <div class="jiange">
172
-                        <el-radio-group >
173
-                          <el-radio v-for="(item,index ) in tuoguan" :label="item" :key="index" style="">{{ item }}</el-radio>
172
+                        <el-radio-group v-model="items.radio">
173
+                          <el-radio v-for="(item,index ) in tuoguan" :label="item.value"  :key="index" style="">{{ item.label }}</el-radio>
174 174
                         </el-radio-group>
175 175
                       </div>
176 176
                     </td>
177 177
                     <td rowspan="3">
178 178
                       <div style="vertical-align: top; color: black; padding: 5px;">
179
-                        <label><input name="ball" type="checkbox" value="football" />&nbsp;1.管道维护,导管脱落严重后果及预防措施的健康教育;</label> <br/>
180
-                        <label><input name="ball" type="checkbox" value="football" />&nbsp;2.床边悬挂警示标识(>9分悬挂);</label><br/>
181
-                        <label><input name="ball" type="checkbox" value="football" />&nbsp;3.正确妥善固定;</label><br/>
182
-                        <label><input name="ball" type="checkbox" value="football" />&nbsp;4.正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;</label><br/>
183
-                        <label><input name="ball" type="checkbox" value="football" />&nbsp;5.加强巡视,及时发现满足患者需要;</label><br/>
184
-                        <label><input name="ball" type="checkbox" value="football" />&nbsp;6.严格交接班,各班重点交接,观察外露长度,必要时记录;</label><br/>
185
-                        <label><input name="ball" type="checkbox" value="football" />&nbsp;7.昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;</label><br/>
186
-                        <label><input name="ball" type="checkbox" value="football" />&nbsp;8.进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;</label><br/>
187
-                        <label><input name="ball" type="checkbox" value="football" />&nbsp;9.对于气管插管清醒患者,进行心理疏导和安全教育。</label>
179
+                        <span >
180
+                          <template v-for="item in items.huli_show">  
181
+                            <span >                  
182
+                              <label><input type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/>&nbsp;<span>{{ item.id }}.</span>{{item.label}}</label> <br/>
183
+                            </span> 
184
+                            </template>
185
+                            <!--  :checked="it==item.id ? true : false" -->
186
+                        </span>
188 187
                       </div>
189 188
                     </td>
190 189
                   </tr>
@@ -192,8 +191,8 @@
192 191
                     <td class="start">B.患者意识程度</td>
193 192
                     <td>
194 193
                       <div class="jiange">
195
-                          <el-radio-group >
196
-                              <el-radio v-for="(item,index ) in yishi" :label="item" :key="index">{{ item }}</el-radio>
194
+                          <el-radio-group v-model="items.radio1">
195
+                              <el-radio v-for="(item,index ) in yishi" :label="item.value"  :key="index">{{ item.label }}</el-radio>
197 196
                           </el-radio-group>
198 197
                       </div>
199 198
                     </td>
@@ -202,8 +201,8 @@
202 201
                     <td class="start">C.患者配合程度</td>
203 202
                     <td>
204 203
                       <div  class="jiange">
205
-                          <el-radio-group >
206
-                            <el-radio v-for="(item,index ) in peihe" :label="item" :key="index">{{ item }}</el-radio>
204
+                          <el-radio-group v-model="items.radio2">
205
+                            <el-radio v-for="(item,index ) in peihe" :label="item.value"  :key="index">{{ item.label }}</el-radio>
207 206
                           </el-radio-group>
208 207
                       </div>
209 208
                     </td>
@@ -216,32 +215,32 @@
216 215
                         <p style="display: inline-block; margin-right: 70px;">患者/家属签字: <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span></p>
217 216
                         <p style="display: inline-block;">
218 217
                             日期:
219
-                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
218
+                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 160px;">{{ items.jiashu_date}}</span>
220 219
                         </p>
221 220
                     </div>
222 221
                     <div class="zhuangui">
223 222
                         <span>转归:</span>
224
-                        <el-radio  label="1">脱落</el-radio>
225
-                        <el-radio  label="2">未脱落</el-radio>
223
+                        <el-radio v-model="items.zhuanggui" label="1">脱落</el-radio>
224
+                        <el-radio v-model="items.zhuanggui" label="2">未脱落</el-radio>
226 225
                     </div>
227 226
                     <div class="zhuangui">
228 227
                         <p style="display: inline-block; margin-right: 30px;">
229 228
                             评估人签字:
230
-                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
229
+                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 160px;">{{ getoptions(items.appraiser) }}</span>
231 230
                         </p>
232 231
                         <p style="display: inline-block;">
233 232
                             日期:
234
-                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
233
+                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 160px;">{{ items.time }}</span>
235 234
                         </p>
236 235
                     </div>
237 236
                     <div class="zhuangui">
238 237
                         <p style="display: inline-block; margin-right: 30px;">
239 238
                             护士长签字:
240
-                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
239
+                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 160px;">{{ getoptions(items.hushi) }}</span>
241 240
                         </p>
242 241
                         <p style="display: inline-block;">
243 242
                             日期:
244
-                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
243
+                            <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 160px;">{{ items.hushi_date }}</span>
245 244
                         </p>
246 245
                     </div>
247 246
               </div>
@@ -252,7 +251,7 @@
252 251
                   <p>2.导管脱落危险因素≥5分,需填写该表。</p>
253 252
                   <p>3.常规情况下,评分5~8分,至少每天评估一次;评分≥9,至少每班评估一次,紧急与特殊情况,应随时评估。</p>
254 253
               </div>
255
-              <div style="font-size: 16px;">打印时间</div>
254
+              <div style="font-size: 16px;">打印时间:{{ dayin }}</div>
256 255
             </div>
257 256
           </div>
258 257
         </div>
@@ -286,7 +285,7 @@
286 285
               <td rowspan="3">
287 286
                 <div style="vertical-align: top; color: black; padding: 5px;">
288 287
                   <span v-for="item in hulicuoshi">
289
-                    <label><input name="ball" type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/>&nbsp;{{item.label}}</label> <br/>
288
+                    <label><input name="ball" type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/>&nbsp;<span>{{ item.id }}.</span>{{item.label}}</label> <br/>
290 289
                   </span>
291 290
                 </div>
292 291
               </td>
@@ -337,14 +336,14 @@
337 336
             </div>
338 337
 
339 338
             <div class="bottoms">
340
-                <span>评估人:</span>
341
-                <el-select v-model="appraiser" placeholder="请选择" >
339
+                <span>责任护士:</span>
340
+                <el-select v-model="Dutynurse" placeholder="请选择" style="width:150px;">
342 341
                     <el-option
343
-                    v-for="item in optionsarr"
344
-                    :key="item.value"
342
+                    v-for="item in Dutynursearr"
343
+                    :key="item.id"
345 344
                     :label="item.label"
346
-                    :value="item.value"
347
-                    style="width:150px;">
345
+                    :value="item.id"
346
+                    >
348 347
                     </el-option>
349 348
                 </el-select>
350 349
             </div>
@@ -381,9 +380,9 @@
381 380
                 <el-select v-model="appraiser" placeholder="请选择" style="width: 120px;">
382 381
                     <el-option
383 382
                     v-for="item in optionsarr"
384
-                    :key="item.value"
383
+                    :key="item.id"
385 384
                     :label="item.label"
386
-                    :value="item.value">
385
+                    :value="item.id">
387 386
                     </el-option>
388 387
                 </el-select>
389 388
             </p>
@@ -404,9 +403,9 @@
404 403
                 <el-select v-model="hushi" placeholder="请选择" style="width: 120px;">
405 404
                     <el-option
406 405
                     v-for="item in hushiarr"
407
-                    :key="item.value"
406
+                    :key="item.id"
408 407
                     :label="item.label"
409
-                    :value="item.value">
408
+                    :value="item.id">
410 409
                     </el-option>
411 410
                 </el-select>
412 411
             </p>
@@ -447,6 +446,8 @@
447 446
 <script>
448 447
 import print from 'print-js'
449 448
 import { uParseTime } from '@/utils/tools'
449
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,
450
+  deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
450 451
 export default{
451 452
   data(){
452 453
     return{
@@ -468,15 +469,26 @@ export default{
468 469
       input:'',
469 470
       value:'',
470 471
       row:'',
471
-      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
472
+      tableData:[],
472 473
       date:this.getTime(new Date()),
473 474
       appraiser:'',
474
-      optionsarr:[],
475
+      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
476
+      Dutynurse:'',//责任护士
477
+      // Dutynursearr:[],//责任护士数组
478
+      Dutynursearr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
475 479
       jiashu_date:this.getTime(new Date()),//家属时间
476 480
       zhuanggui:'',//转归
477 481
       hushi:'',//护理
478
-      hushiarr:'',//护理
482
+      hushiarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],//护理
479 483
       hushi_date:this.getTime(new Date()),//护理时间
484
+      limit:10,
485
+      page:1,
486
+      patient_id:'',
487
+      Patient_info:{},
488
+      cuoshi_show:[],//护理措施选中数组
489
+      row_id:0,//table选中的id
490
+      cath_zong:0,
491
+      dayin:this.getTime2(new Date()),
480 492
       tuoguan:[{value:1,label:'低危导管 (1分)',is_check:false,check:0},
481 493
               {value:2,label:'中危导管 (2分)',is_check:false,check:0},
482 494
               {value:3,label:'高危导管 (3分)',is_check:false,check:0}
@@ -491,23 +503,27 @@ export default{
491 503
             {value:2,label:'部分配合 (2分)',is_check:false,check:0},
492 504
             {value:3,label:'不配合 (3分)',is_check:false,check:0},
493 505
             ],
494
-      hulicuoshi:[{label:'1.管道维护,导管脱落严重后果及预防措施的健康教育;',is_check:false,check:0},
495
-      {label:'2.床边悬挂警示标识(>9分悬挂);',is_check:false,check:0},{label:'3.正确妥善固定;',is_check:false,check:0},
496
-      {label:'4.正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;',is_check:false,check:0},
497
-      {label:'5.加强巡视,及时发现满足患者需要;',is_check:false,check:0},{label:'6.严格交接班,各班重点交接,观察外露长度,必要时记录;',is_check:false,check:0},
498
-      {label:'7.昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
499
-      {label:'8.进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
500
-      {label:'9.对于气管插管清醒患者,进行心理疏导和安全教育。',is_check:false,check:0},]
501
-
502
-      
506
+      hulicuoshi:[{id:1,label:'管道维护,导管脱落严重后果及预防措施的健康教育;',is_check:false,check:0},
507
+      {id:2,label:'床边悬挂警示标识(>9分悬挂);',is_check:false,check:0},{id:3,label:'正确妥善固定;',is_check:false,check:0},
508
+      {id:4,label:'正确卧位及床上活动方式, 病人带管下床活动时, 将引流管固定在病人的衣服或裤子上;',is_check:false,check:0},
509
+      {id:5,label:'加强巡视,及时发现满足患者需要;',is_check:false,check:0},{id:6,label:'严格交接班,各班重点交接,观察外露长度,必要时记录;',is_check:false,check:0},
510
+      {id:7,label:'昏迷、暴躁、不合作病人,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
511
+      {id:8,label:'进行诊疗护理需要移动患者时,根据医嘱使用镇静剂和约束带;',is_check:false,check:0},
512
+      {id:9,label:'对于气管插管清醒患者,进行心理疏导和安全教育。',is_check:false,check:0},]
503 513
     }
504 514
   },
515
+  created(){
516
+    this.patient_id = this.$route.query.patient_id
517
+    this.Patient_info = this.$route.query.Patient_info
518
+    this.getlist()
519
+  },
505 520
   methods:{
506 521
     fanhui(){
507 522
       window.history.go(-1);
508 523
     },
509 524
     handleSelectionChange(val) {
510 525
       this.multipleSelection = val;
526
+      console.log('val',val);
511 527
     },
512 528
     open_pingfen(){
513 529
       if(this.multipleSelection.length==0){
@@ -546,61 +562,155 @@ export default{
546 562
       }
547 563
 
548 564
     },
565
+    // 打开编辑
549 566
     open_xiugai(row){
567
+      this.row_id = row.id
550 568
       this.editor_dialogVisible=true
569
+      getPedPatientFallAssessmentById(row.id).then(response =>{
570
+        if(response.data.state == 1){
571
+          const cath_xg = response.data.data.fallassessment
572
+          for(let i in this.hulicuoshi){
573
+            this.hulicuoshi[i].is_check = false
574
+            this.hulicuoshi[i].check = 0
575
+            this.cuoshi_show.length=0
576
+          }
577
+          if(cath_xg.text !=''){
578
+            const text = JSON.parse(cath_xg.text)
579
+            this.radio = text.radio
580
+            this.radio1 = text.radio1
581
+            this.radio2 = text.radio2
582
+            this.duct_Totalpoints = text.total
583
+            this.date = text.date
584
+            this.Dutynurse = text.Dutynurse
585
+            this.jiashu_date = text.jiashu_date
586
+            this.zhuanggui = text.zhuanggui
587
+            this.hushi = text.hushi
588
+            this.hushi_date = text.hushi_date
589
+            this.appraiser = text.appraiser
590
+            for(let i in this.hulicuoshi){
591
+              for(let j in text.cuoshi){
592
+                if(text.cuoshi[j] == this.hulicuoshi[i].id){
593
+                  this.hulicuoshi[i].is_check = true
594
+                  this.hulicuoshi[i].check = 1
595
+                  this.cuoshi_show.push(text.cuoshi[j])
596
+                }
597
+              }
598
+              
599
+            }
600
+          }
601
+        }
602
+      })
551 603
     },
604
+    // 打开删除弹窗
552 605
     open_delete(row){
553 606
       this.row=row.id
554 607
       this.delete_centerDialogVisible=true
555 608
     },
609
+    // 确认删除
556 610
     delete_daogaun(){
557
-      for(let i=0;i<this.tableData.length;i++){
558
-        if(this.row==this.tableData[i].id){
559
-          this.tableData.splice(i,1)
611
+      deletePedPatientFallassment(this.row).then(response =>{
612
+        if(response.data.state == 1){
613
+          for(let i=0;i<this.tableData.length;i++){
614
+            if(this.row==this.tableData[i].id){
615
+              this.tableData.splice(i,1)
616
+            }
617
+          }
560 618
         }
561
-      }
619
+        this.$message({message:'删除成功',type:'success'})
620
+      })
562 621
       this.delete_centerDialogVisible=false
622
+      return this.tableData
563 623
     },
564 624
     handleCheckedCitiesChange(e){
565 625
       if(e == this.radio){
566
-        this.radio_val = e
626
+        this.radio = e
567 627
       }
568 628
       if(e == this.radio1){
569
-        this.radio1_val = e
629
+        this.radio1 = e
570 630
       }
571 631
       if(e == this.radio2){
572
-        this.radio2_val = e
632
+        this.radio2 = e
573 633
       }
574 634
     },
575 635
     // 确认
576 636
     daoguanclick(){
637
+      const data = {}
638
+      var list =[]
639
+      data['radio'] = this.radio
640
+      data['radio1'] = this.radio1
641
+      data['radio2'] = this.radio2
642
+      data['total'] = this.duct_Totalpoints
643
+      data['cuoshi'] = this.cuoshi_show
644
+      data['date'] = this.date
645
+      data['Dutynurse'] = this.Dutynurse
646
+      data['appraiser'] = this.appraiser
647
+      data['jiashu_date'] = this.jiashu_date
648
+      data['zhuanggui'] = this.zhuanggui
649
+      data['hushi'] = this.hushi
650
+      data['hushi_date'] = this.hushi_date
651
+      list.push(data)
577 652
       var params={
578
-        radio:this.radio,
579
-        radio1:this.radio1,
580
-        radio2:this.radio2,
581
-        duct_Totalpoints:this.duct_Totalpoints,
582
-        hulicuoshi:this.hulicuoshi,
583
-        date:this.date,//评估时间
584
-        appraiser:this.appraiser,
585
-        optionsarr:this.optionsarr,//评估数组
586
-        jiashu_date:this.jiashu_date,
587
-        zhuanggui:this.zhuanggui,
588
-        hushi:this.hushi,
589
-        hushiarr:this.hushiarr,
590
-        hushi_date:this.hushi_date,
591
-        patientID:this.patientID
653
+        patient_id:this.patient_id,
654
+        record_date:this.date,
655
+        is_type:4,
656
+        list:list,
657
+        id:this.row_id
592 658
       }
593
-      console.log('params====',params);
659
+      updateBedPatientList(params).then(response =>{
660
+        if(response.data.state == 1){
661
+          const daog = response.data.data.pedFallssessment
662
+          console.log('22222',daog);
663
+          if(daog.text !=''){
664
+            const text = JSON.parse(daog.text)
665
+            for(let i in this.tableData){
666
+              if(daog.id == this.tableData[i].id){
667
+                this.tableData[i].id = daog.id
668
+                this.tableData[i].radio = text.radio
669
+                this.tableData[i].radio1 = text.radio1
670
+                this.tableData[i].radio2 = text.radio2
671
+                this.tableData[i].mark = text.total
672
+                this.tableData[i].cuoshi_show = this.getcuoshi(text.cuoshi)
673
+                this.tableData[i].time = text.date//评估时间
674
+                this.tableData[i].evaluate = this.getoptions(text.Dutynurse)
675
+                this.tableData[i].jiashu_date = text.jiashu_date
676
+                this.tableData[i].zhuanggui = text.zhuanggui
677
+                this.tableData[i].hushi = text.hushi
678
+                this.tableData[i].hushi_date = text.hushi_date
679
+                this.tableData[i].appraiser = text.appraiser
680
+                this.tableData[i].huli_show = text.cuoshi
681
+              }
682
+            }
683
+          }
684
+          console.log('zzzzzzz',this.tableData);
685
+          this.editor_dialogVisible = false
686
+          this.$message({message:'修改成功',type:'success'})
687
+          return this.tableData
688
+        }
689
+      })
594 690
     },
595 691
     // 点击护理措施
596 692
     cuoshi(item){
597 693
       for(let i in this.hulicuoshi){
598
-        if(item.is_check==false){
599
-          if(item.label==this.hulicuoshi[i].label){
694
+        if(item.label==this.hulicuoshi[i].label ){
695
+          if(item.is_check==false){
600 696
             this.hulicuoshi[i].check= 1
697
+            this.hulicuoshi[i].is_check = true
698
+            this.cuoshi_show.push(item.id)
699
+          }else{
700
+            this.hulicuoshi[i].check= 0
701
+            this.hulicuoshi[i].is_check = false
702
+            if(this.cuoshi_show.length>0){
703
+              for(let j in this.cuoshi_show){
704
+                if(item.id == this.cuoshi_show[j]){
705
+                  let index = this.cuoshi_show.indexOf(this.cuoshi_show[j]);
706
+                  this.cuoshi_show.splice(index,1)
707
+                }
708
+              }
709
+            }
601 710
           }
602 711
         }
603 712
       }
713
+      console.log('qqqqq',this.cuoshi_show);
604 714
     },
605 715
     // 转换时间
606 716
     getTime(val) {
@@ -613,11 +723,91 @@ export default{
613 723
         return uParseTime(val, '{y}-{m}-{d}')
614 724
         }
615 725
     },
726
+    getTime2(val){
727
+      if(val < 0){
728
+          return ""
729
+        }
730
+        if(val == ""){
731
+        return ""
732
+        }else {
733
+        return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
734
+        }
735
+    },
736
+    // 数据源
737
+    getlist(){
738
+      var params = {
739
+        patient_id:this.patient_id,
740
+        limit:this.limit,
741
+        is_type:4,
742
+        page:this.page,
743
+      }
744
+      getPatientBedlist(params).then(response =>{
745
+        if(response.data.state == 1){
746
+          var list = response.data.data.list
747
+          console.log('list-----',list);
748
+          list.forEach(item => {
749
+            if(item.text !=''){
750
+              const text = JSON.parse(item.text)
751
+              const arr = {
752
+                id:item.id,
753
+                radio:text.radio,
754
+                radio1:text.radio1,
755
+                radio2:text.radio2,
756
+                mark:text.total,
757
+                cuoshi_show:this.getcuoshi(text.cuoshi),
758
+                time:text.date,//评估时间
759
+                evaluate:this.getoptions(text.Dutynurse),
760
+                jiashu_date:text.jiashu_date,
761
+                zhuanggui:text.zhuanggui,
762
+                hushi:text.hushi,
763
+                hushi_date:text.hushi_date,
764
+                huli_show:text.cuoshi1,
765
+                appraiser:text.appraiser
766
+              }
767
+              this.tableData.push(arr)
768
+            }
769
+           
770
+          });
771
+          console.log('nnnnn',this.tableData);
772
+        }
773
+      })
774
+    },
775
+    
776
+     // 评估护士
777
+     getoptions(ids){
778
+     const options= this.optionsarr
779
+      for(let i in options){
780
+        if(options[i].id == ids){
781
+          return options[i].label
782
+        }
783
+      }
784
+    },
785
+    // 护理措施
786
+    getcuoshi(item){
787
+      var arr =[]
788
+      for(let i in this.hulicuoshi){
789
+        for(let j in item){
790
+          if(item[j]==this.hulicuoshi[i].id){
791
+            arr.push(this.hulicuoshi[i].label)
792
+          }
793
+        }
794
+        var arr2 = arr.join()
795
+      }
796
+      return arr2
797
+    }
616 798
   },
617 799
   computed:{
618
-    duct_Totalpoints(){
619
-      return this.radio_val + this.radio1_val + this.radio2_val
800
+    duct_Totalpoints:{
801
+      get(){
802
+        this.cath_zong = this.radio + this.radio1 + this.radio2
803
+        return this.cath_zong
804
+      },
805
+      set(val){
806
+        return this.cath_zong = val
807
+      }
808
+      
620 809
     }
810
+
621 811
   }
622 812
 }
623 813
 </script>
@@ -698,4 +888,7 @@ export default{
698 888
   margin-left: 10px;
699 889
   margin-top: 5px;
700 890
 }
891
+input{
892
+    -webkit-appearance: checkbox;
893
+}
701 894
 </style>

+ 344 - 92
src/xt_pages/user/history/date_history.vue 查看文件

@@ -26,7 +26,6 @@
26 26
           style="width: 100%"
27 27
           @selection-change="handleSelectionChange">
28 28
           <el-table-column
29
-
30 29
             type="selection"
31 30
             width="55"
32 31
             align="center">
@@ -34,65 +33,68 @@
34 33
           <el-table-column
35 34
             prop="time"
36 35
             label="评估日期"
37
-            width="90"
36
+            width="100"
38 37
             align="center">
39 38
 
40 39
           </el-table-column>
41 40
           <el-table-column
42
-            prop="name"
41
+            prop="jinshi"
43 42
             label="进食"
44 43
             width=""
45 44
             align="center">
46 45
           </el-table-column>
47 46
           <el-table-column
48
-            prop="name"
47
+            prop="xizao"
49 48
             label="洗澡"
50 49
             width=""
51 50
             align="center">
52 51
           </el-table-column>
53 52
           <el-table-column
53
+            prop="xiushi"
54 54
             label="修饰"
55 55
             width=""
56 56
             align="center">
57 57
 
58 58
           </el-table-column>
59 59
           <el-table-column
60
-            prop="name"
60
+            prop="chuanyi"
61 61
             label="穿衣"
62 62
             width=""
63 63
             align="center">
64 64
           </el-table-column>
65 65
           <el-table-column
66
-            prop="name"
66
+            prop="dabian"
67 67
             label="控制大便"
68 68
             width=""
69 69
             align="center">
70 70
           </el-table-column>
71 71
           <el-table-column
72
+            prop="xioabian"
72 73
             label="控制小便"
73 74
             width=""
74 75
             align="center">
75 76
 
76 77
           </el-table-column>
77 78
           <el-table-column
78
-            prop="name"
79
+            prop="ruce"
79 80
             label="如厕"
80 81
             width=""
81 82
             align="center">
82 83
           </el-table-column>
83 84
           <el-table-column
84
-            prop="name"
85
+            prop="chuangyi"
85 86
             label="床桌转移"
86 87
             width=""
87 88
             align="center">
88 89
           </el-table-column>
89 90
           <el-table-column
90
-            prop="name"
91
+            prop="pingdi"
91 92
             label="平地行走"
92 93
             width=""
93 94
             align="center">
94 95
           </el-table-column>
95 96
           <el-table-column
97
+            prop="louti"
96 98
             label="上下楼梯"
97 99
             width=""
98 100
             align="center">
@@ -141,9 +143,9 @@
141 143
             <div style="width:100%;margin-top: 20px;">
142 144
               <div style="text-align: center;"><h1>血液透析中心日常生活能力评定记录</h1></div>
143 145
               <div style="margin-top: 20px;font-size: 16px;">
144
-                <span>患者姓名:</span>
145
-                <span>透析号:</span>
146
-                <span>打印时间</span>
146
+                <span>患者姓名:{{ Patient_info.name }}</span>&nbsp;&nbsp;
147
+                <span>透析号:{{ Patient_info.dialysis_no }}</span>&nbsp;&nbsp;
148
+                <span>打印时间:{{ dayin_time }}</span>
147 149
               </div>
148 150
               <table class="tables" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
149 151
                 <tr>
@@ -163,16 +165,16 @@
163 165
                 </tr>
164 166
                 <tr v-for="item in multipleSelection" >
165 167
                   <td>{{item.time}}</td>
166
-                  <td></td>
167
-                  <td></td>
168
-                  <td></td>
169
-                  <td></td>
170
-                  <td></td>
171
-                  <td></td>
172
-                  <td></td>
173
-                  <td></td>
174
-                  <td></td>
175
-                  <td></td>
168
+                  <td>{{ item.jinshi }}</td>
169
+                  <td>{{ item.xizao }}</td>
170
+                  <td>{{ item.xiushi }}</td>
171
+                  <td>{{ item.chuanyi }}</td>
172
+                  <td>{{ item.dabian }}</td>
173
+                  <td>{{ item.xioabian }}</td>
174
+                  <td>{{ item.ruce }}</td>
175
+                  <td>{{ item.chuangyi }}</td>
176
+                  <td>{{ item.pingdi }}</td>
177
+                  <td>{{ item.louti }}</td>
176 178
                   <td>{{item.mark}}</td>
177 179
                   <td>{{item.evaluate}}</td>
178 180
                 </tr>
@@ -198,17 +200,17 @@
198 200
         </div>
199 201
 
200 202
         <div id="mingxi" >
201
-          <div class="diedao_content" style="page-break-after: always;" v-for="i in multipleSelection">
203
+          <div class="diedao_content" style="page-break-after: always;" v-for="(items,index) in multipleSelection" :key="index">
202 204
             <div style="width:100%;margin-top: 20px;">
203 205
               <div style="text-align: center;"><h1>血液透析中心日常生活能力评定记录</h1></div>
204 206
               <div style="margin-top: 20px;font-size: 16px;">
205
-                <span>患者姓名:</span>
206
-                <span>透析号:</span>
207
-                <span>评估日期:</span>
208
-                <span>评估护士:</span>
209
-                <span>总分</span>
207
+                <span>患者姓名:{{ Patient_info.name }}</span>&nbsp;&nbsp;
208
+                <span>透析号:{{ Patient_info.dialysis_no }}</span>&nbsp;&nbsp;
209
+                <span>评估日期:{{ items.time }}</span>&nbsp;&nbsp;
210
+                <span>评估护士:{{items.evaluate }}</span>&nbsp;&nbsp;
211
+                <span>总分:{{ items.mark }}</span>
210 212
               </div>
211
-              <table  border="1" style="width: 100%; border-collapse:collapse ;">
213
+              <table class="tables" border="1" style="width: 100%; border-collapse:collapse ;">
212 214
                 <thead>
213 215
                   <tr>
214 216
                     <th style="width: 150px;">项目</th>
@@ -217,11 +219,11 @@
217 219
                 </thead>
218 220
                 <tbody>
219 221
                   <tr class="bg_color">
220
-                    <td class="start">进食</td>
221
-                    <td v-for="(item,index) in jinshi" :key="index">
222
+                    <td class="start"style='text-align: center;'>进食</td>
223
+                    <td v-for="(item,index) in jinshi" :key="index" style="padding: 5px 0;">
222 224
                         <div class="jiange">
223 225
                           <span>
224
-                            <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
226
+                            <label><input type="checkbox" :value="item.value" :checked="items.jinshi == item.value ? true:false" />&nbsp;
225 227
                                 {{ item.label }}
226 228
                             </label>
227 229
                           </span>
@@ -230,11 +232,11 @@
230 232
                     <td>&nbsp;</td>
231 233
                   </tr>
232 234
                   <tr>
233
-                    <td class="start">洗澡</td>
234
-                    <td v-for="(item,index) in xizao" :key="index">
235
+                    <td class="start" style='text-align: center;'>洗澡</td>
236
+                    <td v-for="(item,index) in xizao" :key="index" style="padding: 5px 0;">
235 237
                       <div class="jiange">
236 238
                         <span>
237
-                          <label><input type="checkbox" name="ball" :value="item.value"/>&nbsp;
239
+                          <label><input type="checkbox" :value="item.value" :checked="items.xizao == item.value ? true:false"/>&nbsp;
238 240
                               {{ item.label }}
239 241
                           </label>
240 242
                         </span>
@@ -244,11 +246,11 @@
244 246
                     <td></td>
245 247
                   </tr>
246 248
                   <tr class="bg_color">
247
-                    <td class="start">修饰</td>
248
-                    <td v-for="(item,index) in xiushi" :key="index">
249
+                    <td style="text-align: center;" >修饰</td>
250
+                    <td v-for="(item,index) in xiushi" :key="index" style="padding: 5px 0;">
249 251
                         <div class="jiange">
250 252
                           <span>
251
-                            <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
253
+                            <label><input type="checkbox" :value="item.value" :checked="items.xiushi == item.value ? true:false"/>&nbsp;
252 254
                                 {{item.label}}
253 255
                             </label>
254 256
                           </span>
@@ -258,11 +260,11 @@
258 260
                     <td></td>
259 261
                   </tr>
260 262
                   <tr>
261
-                    <td class="start">穿衣</td>
262
-                    <td v-for="(item,index) in chuanyi" :key="index">
263
+                    <td class="start" style="text-align: center;">穿衣</td>
264
+                    <td v-for="(item,index) in chuanyi" :key="index" style="padding: 5px 0;">
263 265
                       <div class="jiange">
264 266
                         <span>
265
-                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
267
+                          <label><input type="checkbox" :value="item.value" :checked="items.chuanyi == item.value ? true:false"/>&nbsp;
266 268
                               {{item.label}}
267 269
                           </label>
268 270
                         </span>
@@ -271,11 +273,11 @@
271 273
                     <td></td>
272 274
                   </tr>
273 275
                   <tr class="bg_color">
274
-                    <td class="start">控制大便</td>
275
-                    <td v-for="(item,index) in dabian" :key="index">
276
+                    <td class="start" style="text-align: center;">控制大便</td>
277
+                    <td v-for="(item,index) in dabian" :key="index" style="padding: 5px 0;">
276 278
                       <div class="jiange">
277 279
                         <span>
278
-                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
280
+                          <label><input type="checkbox" :value="item.value" :checked="items.dabian == item.value ? true:false"/>&nbsp;
279 281
                               {{item.label}}
280 282
                           </label>
281 283
                         </span>
@@ -284,11 +286,11 @@
284 286
                     <td></td>
285 287
                   </tr>
286 288
                   <tr>
287
-                    <td class="start">控制小便</td>
288
-                    <td v-for="(item,index) in xioabian" :key="index">
289
+                    <td class="start" style="text-align: center;">控制小便</td>
290
+                    <td v-for="(item,index) in xioabian" :key="index" style="padding: 5px 0;">
289 291
                       <div class="jiange">
290 292
                         <span>
291
-                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
293
+                          <label><input type="checkbox" :checked="items.xioabian == item.value ? true:false" :value="item.value" />&nbsp;
292 294
                               {{item.label}}
293 295
                           </label>
294 296
                         </span>
@@ -297,11 +299,11 @@
297 299
                     <td></td>
298 300
                   </tr>
299 301
                   <tr class="bg_color">
300
-                    <td class="start">如厕</td>
301
-                    <td v-for="(item,index) in ruce" :key="index">
302
+                    <td class="start"style="text-align: center;">如厕</td>
303
+                    <td v-for="(item,index) in ruce" :key="index" style="padding: 5px 0;">
302 304
                       <div class="jiange">
303 305
                         <span>
304
-                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
306
+                          <label><input type="checkbox" :checked="items.ruce == item.value ? true:false" :value="item.value" />&nbsp;
305 307
                               {{item.label}}
306 308
                           </label>
307 309
                         </span>
@@ -310,11 +312,11 @@
310 312
                     <td></td>
311 313
                   </tr>
312 314
                   <tr>
313
-                    <td class="start">床椅转移</td>
314
-                    <td v-for="(item,index) in chuangyi" :key="index">
315
+                    <td class="start" style="text-align: center;">床椅转移</td>
316
+                    <td v-for="(item,index) in chuangyi" :key="index" style="padding: 5px 0;">
315 317
                       <div class="jiange">
316 318
                         <span>
317
-                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
319
+                          <label><input type="checkbox" :checked="items.chuangyi == item.value ? true:false" :value="item.value" />&nbsp;
318 320
                               {{item.label}}
319 321
                           </label>
320 322
                         </span>
@@ -322,11 +324,11 @@
322 324
                     </td>
323 325
                   </tr>
324 326
                   <tr class="bg_color">
325
-                    <td class="start">平地行走</td>
326
-                    <td v-for="(item,index) in pingdi" :key="index">
327
+                    <td class="start" style="text-align: center;">平地行走</td>
328
+                    <td v-for="(item,index) in pingdi" :key="index" style="padding: 5px 0;">
327 329
                       <div class="jiange">
328 330
                         <span>
329
-                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
331
+                          <label><input type="checkbox" :checked="items.pingdi == item.value ? true:false" :value="item.value" />&nbsp;
330 332
                               {{item.label}}
331 333
                           </label>
332 334
                         </span>
@@ -334,11 +336,11 @@
334 336
                     </td>
335 337
                   </tr>
336 338
                   <tr>
337
-                    <td class="start">上下楼梯</td>
338
-                    <td v-for="(item,index) in louti" :key="index">
339
+                    <td class="start" style="text-align: center;">上下楼梯</td>
340
+                    <td v-for="(item,index) in louti" :key="index" style="padding: 5px 0;">
339 341
                       <div class="jiange">
340 342
                         <span>
341
-                          <label><input type="checkbox" name="ball" :value="item.value" />&nbsp;
343
+                          <label><input type="checkbox" :checked="items.louti == item.value ? true:false" :value="item.value" />&nbsp;
342 344
                               {{ item.label }}
343 345
                           </label>
344 346
                         </span>
@@ -348,7 +350,7 @@
348 350
                   </tr>
349 351
                 </tbody>
350 352
               </table>
351
-              <div style="font-size: 16px;">打印时间</div>
353
+              <div style="font-size: 16px;">打印时间:{{ dayin_time }}</div>
352 354
             </div>
353 355
           </div>
354 356
         </div>
@@ -520,13 +522,13 @@
520 522
 
521 523
                       <div class="bottoms">
522 524
                           <span>评估人:</span>
523
-                          <el-select v-model="appraiser" placeholder="请选择" >
525
+                          <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
524 526
                               <el-option
525 527
                               v-for="item in optionsarr"
526
-                              :key="item.value"
528
+                              :key="item.id"
527 529
                               :label="item.label"
528
-                              :value="item.value"
529
-                              style="width:150px;">
530
+                              :value="item.id"
531
+                              >
530 532
                               </el-option>
531 533
                           </el-select>
532 534
                       </div>
@@ -559,6 +561,8 @@
559 561
 <script>
560 562
 import print from 'print-js'
561 563
 import { uParseTime } from '@/utils/tools'
564
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,
565
+  deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
562 566
 export default{
563 567
   data(){
564 568
     return{
@@ -583,10 +587,18 @@ export default{
583 587
       paingdi_val:null,
584 588
       louti_val:null,
585 589
       row:'',
586
-      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
587
-      appraiser:'',
588
-      optionsarr:[],
590
+      tableData:[],
591
+      appraiser:0,
592
+      // optionsarr:[],
593
+      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
589 594
       date:this.getTime(new Date()),
595
+      patient_id:0,
596
+      Patient_info:{},
597
+      limit:10,
598
+      page:1,
599
+      xuan_id:0,
600
+      left_zong:0,
601
+      dayin_time:this.getTime2(new Date()),
590 602
       jinshi:[{value:10,label:'可独立进食(10分)',is_check:false,check:0},
591 603
               {value:5,label:'需部分帮助(如协助夹菜等)(5分)',is_check:false,check:0},
592 604
               {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
@@ -627,7 +639,6 @@ export default{
627 639
               {value:5,label:'需部分帮助(他人帮助)(5分)',is_check:false,check:0},
628 640
               {value:0,label:'需极大帮助或完全依赖他人(0分)',is_check:false,check:0}
629 641
             ],
630
-
631 642
       
632 643
     }
633 644
   },
@@ -637,6 +648,7 @@ export default{
637 648
     },
638 649
     handleSelectionChange(val) {
639 650
       this.multipleSelection = val;
651
+      console.log('aaaaaa',this.multipleSelection);
640 652
     },
641 653
     open_pingfeng(){
642 654
       if(this.multipleSelection.length==0){
@@ -657,7 +669,7 @@ export default{
657 669
     print_pingfen(id){
658 670
       this.dialogVisible=false
659 671
       this.mingxi_dialogVisible=false
660
-      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
672
+      const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .tables tr td{padding:5px}}'
661 673
       if(id==1){
662 674
         printJS({
663 675
           printable: 'pingfeng',
@@ -678,20 +690,138 @@ export default{
678 690
 
679 691
 
680 692
     },
693
+    // 打开编辑
681 694
     open_xiugai(row){
682 695
       this.editor_dialogVisible=true
696
+      this.xuan_id =row.id
697
+      getPedPatientFallAssessmentById(row.id).then(response =>{
698
+        if(response.data.state == 1){
699
+          const left_text = response.data.data.fallassessment
700
+          const text =JSON.parse(left_text.text)
701
+          for(let i in this.jinshi){
702
+            if(text.jinshi == this.jinshi[i].value){
703
+              this.jinshi[i].is_check =true
704
+              this.jinshi[i].check =1
705
+              this.jinshi_val = text.jinshi
706
+            }else{
707
+              this.jinshi[i].is_check =false
708
+              this.jinshi[i].check =0
709
+            }
710
+          }
711
+          for(let i in this.xizao){
712
+            if(text.xizao == this.xizao[i].value){
713
+              this.xizao[i].is_check =true
714
+              this.xizao[i].check =1
715
+              this.xizao_val = text.xizao 
716
+            }else{
717
+              this.xizao[i].is_check =false
718
+              this.xizao[i].check =0
719
+            }
720
+          }
721
+          for(let i in this.xiushi){
722
+            if(text.xiushi == this.xiushi[i].value){
723
+              this.xiushi[i].is_check =true
724
+              this.xiushi[i].check =1
725
+              this.xiushi_val = text.xiushi
726
+            }else{
727
+              this.xiushi[i].is_check =false
728
+              this.xiushi[i].check =0
729
+            }
730
+          }
731
+          for(let i in this.chuanyi){
732
+            if(text.chuanyi == this.chuanyi[i].value){
733
+              this.chuanyi[i].is_check =true
734
+              this.chuanyi[i].check =1
735
+              this.chuanyi_val = text.chuanyi
736
+            }else{
737
+              this.chuanyi[i].is_check =false
738
+              this.chuanyi[i].check =0
739
+            }
740
+          }
741
+          for(let i in this.dabian){
742
+            if(text.dabian == this.dabian[i].value){
743
+              this.dabian[i].is_check =true
744
+              this.dabian[i].check =1
745
+              this.dabian_val = text.dabian
746
+            }else{
747
+              this.dabian[i].is_check =false
748
+              this.dabian[i].check =0
749
+            }
750
+          }
751
+          for(let i in this.xioabian){
752
+            if(text.xioabian == this.xioabian[i].value){
753
+              this.xioabian[i].is_check =true
754
+              this.xioabian[i].check =1
755
+              this.xiaobian_val = text.xioabian
756
+            }else{
757
+              this.xioabian[i].is_check =false
758
+              this.xioabian[i].check =0
759
+            }
760
+          }
761
+          for(let i in this.ruce){
762
+            if(text.ruce == this.ruce[i].value){
763
+              this.ruce[i].is_check =true
764
+              this.ruce[i].check =1
765
+              this.ruce_val = text.ruce
766
+            }else{
767
+              this.ruce[i].is_check =false
768
+              this.ruce[i].check =0
769
+            }
770
+          }
771
+          for(let i in this.chuangyi){
772
+            if(text.chuangyi == this.chuangyi[i].value){
773
+              this.chuangyi[i].is_check =true
774
+              this.chuangyi[i].check =1
775
+              this.chuangyi_val = text.chuangyi
776
+            }else{
777
+              this.chuangyi[i].is_check =false
778
+              this.chuangyi[i].check =0
779
+            }
780
+          }
781
+          for(let i in this.pingdi){
782
+            if(text.pingdi == this.pingdi[i].value){
783
+              this.pingdi[i].is_check =true
784
+              this.pingdi[i].check =1
785
+              this.paingdi_val = text.pingdi
786
+            }else{
787
+              this.pingdi[i].is_check =false
788
+              this.pingdi[i].check =0
789
+            }
790
+          }
791
+          for(let i in this.louti){
792
+            if(text.louti == this.louti[i].value){
793
+              this.louti[i].is_check =true
794
+              this.louti[i].check =1
795
+              this.louti_val = text.louti
796
+            }else{
797
+              this.louti[i].is_check =false
798
+              this.louti[i].check =0
799
+            }
800
+          }
801
+          this.appraiser = text.appraiser
802
+          this.date = text.date
803
+          this.date_Totalpoints =text.total
804
+          console.log('response.data',response.data.data);
805
+        }
806
+      })
683 807
     },
808
+    // 删除
684 809
     open_delete(row){
685 810
       this.row=row.id
686 811
       this.delete_centerDialogVisible=true
687 812
     },
688 813
     delete_date(){
689
-      for(let i=0;i<this.tableData.length;i++){
690
-        if(this.row==this.tableData[i].id){
691
-          this.tableData.splice(i,1)
814
+      deletePedPatientFallassment(this.row).then(response =>{
815
+        if(response.data.state == 1){
816
+          for(let i=0;i<this.tableData.length;i++){
817
+            if(this.row==this.tableData[i].id){
818
+              this.tableData.splice(i,1)
819
+            }
820
+          }
692 821
         }
693
-      }
822
+      })
694 823
       this.delete_centerDialogVisible=false
824
+      return this.tableData
695 825
     },
696 826
 
697 827
     jinshiclick(e,item){
@@ -877,24 +1007,114 @@ export default{
877 1007
     },
878 1008
     // 确认
879 1009
     date_history(){
1010
+      // var params={
1011
+      //   jinshi:this.jinshi,
1012
+      //   xizao:this.xizao,
1013
+      //   xiushi:this.xiushi,
1014
+      //   chuanyi:this.chuanyi,
1015
+      //   dabian:this.dabian,
1016
+      //   xioabian:this.xioabian,
1017
+      //   ruce:this.ruce,
1018
+      //   chuangyi:this.chuangyi,
1019
+      //   pingdi:this.pingdi,
1020
+      //   louti:this.louti,
1021
+      //   patientID:this.patientID,
1022
+      //   appraiser:this.appraiser,//评估人
1023
+      //   optionsarr:this.optionsarr,//评估人数组
1024
+      //   date:this.date,
1025
+      //   date_Totalpoints:this.date_Totalpoints
1026
+      // }
1027
+      const data={}
1028
+      var list =[]
1029
+      data['jinshi'] = this.jinshi_val
1030
+      data['xizao'] = this.xizao_val
1031
+      data['xiushi'] = this.xiushi_val
1032
+      data['chuanyi'] = this.chuanyi_val
1033
+      data['dabian'] = this.dabian_val
1034
+      data['xioabian'] = this.xiaobian_val
1035
+      data['ruce'] = this.ruce_val
1036
+      data['chuangyi'] = this.chuangyi_val
1037
+      data['pingdi'] = this.paingdi_val
1038
+      data['louti'] = this.louti_val
1039
+
1040
+      data['patient_id'] = this.patientID
1041
+      data['appraiser'] = this.appraiser
1042
+      data['date'] = this.date
1043
+      data['total'] = this.date_Totalpoints
1044
+      list.push(data)
880 1045
       var params={
881
-        jinshi:this.jinshi,
882
-        xizao:this.xizao,
883
-        xiushi:this.xiushi,
884
-        chuanyi:this.chuanyi,
885
-        dabian:this.dabian,
886
-        xioabian:this.xioabian,
887
-        ruce:this.ruce,
888
-        chuangyi:this.chuangyi,
889
-        pingdi:this.pingdi,
890
-        louti:this.louti,
891
-        patientID:this.patientID,
892
-        appraiser:this.appraiser,//评估人
893
-        optionsarr:this.optionsarr,//评估人数组
894
-        date:this.date,
895
-        date_Totalpoints:this.date_Totalpoints
1046
+        patient_id:this.patient_id,
1047
+        record_date:this.date,
1048
+        is_type:3,
1049
+        list:list,
1050
+        id:this.xuan_id,
896 1051
       }
897
-      console.log('2222222',params);
1052
+      console.log('params----',params);
1053
+      updateBedPatientList(params).then(response =>{
1054
+        if(response.data.state == 1){
1055
+          const left =response.data.data.pedFallssessment
1056
+          console.log('2222222',response.data);
1057
+          const text = JSON.parse(left.text)
1058
+          // this.getlist()
1059
+          for(let i in this.tableData){
1060
+            if(left.id == this.tableData[i].id){
1061
+              this.tableData[i].id = left.id
1062
+              this.tableData[i].jinshi = text.jinshi
1063
+              this.tableData[i].xizao = text.xizao
1064
+              this.tableData[i].xiushi = text.xiushi
1065
+              this.tableData[i].chuanyi = text.chuanyi
1066
+
1067
+              this.tableData[i].dabian = text.dabian
1068
+              this.tableData[i].xioabian = text.xioabian
1069
+              this.tableData[i].ruce = text.ruce
1070
+              this.tableData[i].chuangyi = text.chuangyi
1071
+              this.tableData[i].pingdi = text.pingdi
1072
+              this.tableData[i].louti = text.louti
1073
+              this.tableData[i].time = text.date
1074
+              this.tableData[i].mark = text.total
1075
+              this.tableData[i].evaluate = this.getoptions(text.appraiser)
1076
+            }
1077
+          }
1078
+          this.editor_dialogVisible = false
1079
+        }
1080
+      })
1081
+      return this.tableData
1082
+    },
1083
+    // 表格数据
1084
+    getlist(){
1085
+      var params = {
1086
+        patient_id:this.patient_id,
1087
+        limit:this.limit,
1088
+        is_type:3,
1089
+        page:this.page,
1090
+      }
1091
+      getPatientBedlist(params).then((response) =>{
1092
+        if(response.data.state == 1){
1093
+          var list = response.data.data.list
1094
+          list.forEach(item => {
1095
+            const text = JSON.parse(item.text)
1096
+            const arr={
1097
+              id:item.id,
1098
+              jinshi:text.jinshi,
1099
+              xizao:text.xizao,
1100
+              xiushi:text.xiushi,
1101
+              chuanyi:text.chuanyi,
1102
+              dabian:text.dabian,
1103
+              xioabian:text.xioabian,
1104
+              ruce:text.ruce,
1105
+              chuangyi:text.chuangyi,
1106
+              pingdi:text.pingdi,
1107
+              louti:text.louti,
1108
+              time:text.date,
1109
+              mark:text.total,
1110
+              evaluate:this.getoptions(text.appraiser)
1111
+            }
1112
+            this.tableData.push(arr)
1113
+          });
1114
+          // console.log('response.data.state',response.data)
1115
+        }
1116
+        // return this.tableData
1117
+      })
898 1118
     },
899 1119
     // 转换时间
900 1120
     getTime(val) {
@@ -907,12 +1127,44 @@ export default{
907 1127
         return uParseTime(val, '{y}-{m}-{d}')
908 1128
         }
909 1129
     },
1130
+    getTime2(val) {
1131
+        if(val < 0){
1132
+          return ""
1133
+        }
1134
+        if(val == ""){
1135
+        return ""
1136
+        }else {
1137
+        return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
1138
+        }
1139
+    },
1140
+     // 评估护士
1141
+     getoptions(ids){
1142
+     const options= this.optionsarr
1143
+      for(let i in options){
1144
+        if(options[i].id == ids){
1145
+          return options[i].label
1146
+        }
1147
+      }
1148
+    }
910 1149
   },
911 1150
   computed:{
912
-    date_Totalpoints(){
913
-      return this.jinshi_val + this.xizao_val + this.xiushi_val + this.chuanyi_val + this.dabian_val + this.xiaobian_val +
914
-      this.ruce_val + this.chuangyi_val + this.paingdi_val + this.louti_val
1151
+    date_Totalpoints:{
1152
+      get(){
1153
+        this.left_zong = this.jinshi_val + this.xizao_val + this.xiushi_val + this.chuanyi_val + this.dabian_val + this.xiaobian_val +
1154
+        this.ruce_val + this.chuangyi_val + this.paingdi_val + this.louti_val
1155
+        return this.left_zong
1156
+      },
1157
+      set(val){
1158
+        return this.left_zong =val
1159
+      }
1160
+      
915 1161
     }
1162
+  },
1163
+  created(){
1164
+    this.patient_id = this.$route.query.patient_id
1165
+    this.Patient_info = this.$route.query.Patient_info
1166
+    // this.tumble_options = this.$route.query.tumble_options
1167
+    this.getlist()
916 1168
   }
917 1169
 }
918 1170
 </script>

+ 184 - 30
src/xt_pages/user/history/mind_history.vue 查看文件

@@ -37,25 +37,25 @@
37 37
 
38 38
           </el-table-column>
39 39
           <el-table-column
40
-            prop=""
40
+            prop="xinli"
41 41
             label="心理评估"
42 42
             width=""
43 43
             align="center">
44 44
           </el-table-column>
45 45
           <el-table-column
46
-            prop="mark"
46
+            prop="ganqing"
47 47
             label="情感障碍"
48 48
             width="150"
49 49
             align="center">
50 50
           </el-table-column>
51 51
           <el-table-column
52
-            prop="mark"
52
+            prop="zishang"
53 53
             label="自伤"
54 54
             width="160"
55 55
             align="center">
56 56
           </el-table-column>
57 57
           <el-table-column
58
-            prop="mark"
58
+            prop="shangra"
59 59
             label="伤人"
60 60
             width="150"
61 61
             align="center">
@@ -93,9 +93,9 @@
93 93
             <div style="width:100%">
94 94
               <div style="text-align: center;"><h1>血液透析中心营养状况评估记录</h1></div>
95 95
               <div style="margin-top: 20px;font-size: 16px;">
96
-                <span>患者姓名</span>
97
-                <span>透析号</span>
98
-                <span>打印时间</span>
96
+                <span>患者姓名:{{Patient_info.name}}</span>
97
+                <span>透析号:{{Patient_info.dialysis_no}}</span>
98
+                <span>打印时间:{{dayin}}</span>
99 99
               </div>
100 100
               <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
101 101
                 <tr>
@@ -109,10 +109,10 @@
109 109
 
110 110
                 <tr v-for="(item,index) in multipleSelection" :key="index">
111 111
                   <td>{{ item.time }}</td>
112
-                  <td>{{ item.mark }}</td>
113
-                  <td>{{ item.mark }}</td>
114
-                  <td>{{ item.mark }}</td>
115
-                  <td>{{ item.mark }}</td>
112
+                  <td>{{ item.xinli }}</td>
113
+                  <td>{{ item.ganqing }}</td>
114
+                  <td>{{ item.zishang }}</td>
115
+                  <td>{{ item.shangra }}</td>
116 116
                   <td>{{ item.evaluate }}</td>
117 117
                 </tr>
118 118
               </table>
@@ -196,13 +196,13 @@
196 196
 
197 197
           <div class="bottoms">
198 198
               <span>评估人:</span>
199
-              <el-select v-model="appraiser" placeholder="请选择" >
199
+              <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
200 200
                   <el-option
201 201
                   v-for="item in optionsarr"
202
-                  :key="item.value"
202
+                  :key="item.id"
203 203
                   :label="item.label"
204
-                  :value="item.value"
205
-                  style="width:150px;">
204
+                  :value="item.id"
205
+                  >
206 206
                   </el-option>
207 207
               </el-select>
208 208
           </div>
@@ -229,16 +229,17 @@
229 229
 <script>
230 230
 import { uParseTime } from '@/utils/tools'
231 231
 import print from 'print-js'
232
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,
233
+  deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
232 234
 export default{
233 235
   data(){
234 236
     return{
235
-      tableData:[],
236 237
       multipleSelection:[],
237 238
       dialogVisible:false,
238 239
       editor_dialogVisible:false,
239 240
       delete_centerDialogVisible:false,
240 241
       row:'',
241
-      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
242
+      tableData:[],
242 243
 
243 244
       checkList:'',
244 245
       radio1:'',
@@ -247,19 +248,33 @@ export default{
247 248
       options:[],
248 249
       value:'',
249 250
       value1:'',
251
+      xinlishow:[],
250 252
       xinli:[{id:1,label:'配合治疗',is_check:false,check:0},{id:2,label:'担忧',is_check:false,check:0},{id:3,label:'烦躁',is_check:false,check:0},
251 253
           {id:4,label:'抵触情绪',is_check:false,check:0},{id:5,label:'拒绝治疗',is_check:false,check:0},{id:6,label:'坐立不安',is_check:false,check:0},
252 254
           {id:7,label:'怪异行为',is_check:false,check:0},{id:8,label:'其他',is_check:false,check:0},],
253 255
       qingan:[{value:1,label:'有'},{value:0,label:'无'}],
254 256
       appraiser:'',
255
-      optionsarr:[],
256
-      date:this.getTime(new Date())
257
+      // optionsarr:[],
258
+      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
259
+      date:this.getTime(new Date()),
260
+      limit:10,
261
+      page:1,
262
+      patient_id:'',
263
+      Patient_info:{},
264
+      row_id:0,
265
+      dayin:this.getTime2(new Date())
257 266
     }
258 267
   },
268
+  created(){
269
+    this.patient_id = this.$route.query.patient_id
270
+    this.Patient_info = this.$route.query.Patient_info
271
+    this.getlist()
272
+  },
259 273
   methods:{
260 274
     fanhui(){
261 275
       window.history.go(-1);
262 276
     },
277
+    // 选中条数
263 278
     handleSelectionChange(val) {
264 279
       this.multipleSelection = val;
265 280
     },
@@ -280,20 +295,59 @@ export default{
280 295
       })
281 296
       this.dialogVisible=false
282 297
     },
298
+    // 打开编辑
283 299
     open_xiugai(row){
300
+      this.row_id =row.id
284 301
       this.editor_dialogVisible=true
302
+      getPedPatientFallAssessmentById(row.id).then(response =>{
303
+        if(response.data.state == 1){
304
+          console.log(response.data.data.fallassessment);
305
+          const mind_xg = response.data.data.fallassessment
306
+          for(let i in this.xinli){
307
+            this.xinli[i].is_check = false
308
+            this.xinli[i].check = 0
309
+            this.xinlishow.length=0
310
+          }
311
+          if(mind_xg.id == row.id){
312
+            const mind_text = JSON.parse(mind_xg.text)
313
+            
314
+            for(let i in this.xinli){
315
+              for(let j in mind_text.xinli){
316
+                if(mind_text.xinli[j] == this.xinli[i].id){
317
+                  console.log('2222',);
318
+                    this.xinli[i].is_check =true
319
+                    this.xinli[i].check = 1
320
+                    this.xinlishow.push(mind_text.xinli[j])
321
+                }
322
+              }
323
+            }
324
+            this.radio1 = mind_text.radio1
325
+            this.radio2 = mind_text.radio2
326
+            this.radio3 = mind_text.radio3
327
+            this.date = mind_text.date
328
+            this.appraiser = mind_text.appraiser
329
+          }
330
+        }
331
+      })
332
+      console.log('mind_text.xinli[j]',this.xinlishow);
285 333
     },
286 334
     open_delet(row){
287 335
       this.row=row.id
288 336
       this.delete_centerDialogVisible=true
289 337
     },
338
+    // 确定删除
290 339
     delete_mind(){
291
-      for(let i=0;i<this.tableData.length;i++){
292
-        if(this.row==this.tableData[i].id){
293
-          this.tableData.splice(i,1)
340
+      deletePedPatientFallassment(this.row).then(response =>{
341
+        if(response.data.state == 1){
342
+          for(let i=0;i<this.tableData.length;i++){
343
+            if(this.row==this.tableData[i].id){
344
+              this.tableData.splice(i,1)
345
+            }
346
+          }
294 347
         }
295
-      }
348
+      })
296 349
       this.delete_centerDialogVisible=false
350
+     return this.tableData
297 351
     },
298 352
     // 心理
299 353
     xinliclick(item){
@@ -320,15 +374,43 @@ export default{
320 374
     },
321 375
     // 确认
322 376
     mindclick(){
377
+      const data={}
378
+      var list = []
379
+      data['radio1'] = this.radio1
380
+      data['radio2'] = this.radio2
381
+      data['radio3'] = this.radio3
382
+      data['date'] = this.date
383
+      data['appraiser'] = this.appraiser
384
+      data['xinli'] = this.xinlishow
385
+      list.push(data)
323 386
       var params={
324
-        radio1:this.radio1,
325
-        radio2:this.radio2,
326
-        radio3:this.radio3,
327
-        date:this.date,
328
-        appraiser:this.appraiser,
329
-        optionsarr:this.optionsarr,
330
-        xinli:this.xinli,
387
+        patient_id:this.patient_id,
388
+        record_date:this.date,
389
+        is_type:8,
390
+        list:list,
391
+        id:this.row_id
331 392
       }
393
+      updateBedPatientList(params).then(response =>{
394
+        if(response.data.state == 1){
395
+          console.log('111111',response.data.data.pedFallssessment);
396
+          const history = response.data.data.pedFallssessment
397
+          const text = JSON.parse(history.text)
398
+          for(let i in this.tableData){
399
+            if(history.id == this.tableData[i].id){
400
+              this.tableData[i].id = history.id
401
+              this.tableData[i].time = text.date
402
+              this.tableData[i].xinli = this.table_xinli(text.xinli)
403
+              this.tableData[i].ganqing = this.table_gangqing(text.radio1)
404
+              this.tableData[i].zishang = this.table_gangqing(text.radio2)
405
+              this.tableData[i].shangra = this.table_gangqing(text.radio3)
406
+              this.tableData[i].evaluate = this.getoptions(text.appraiser)
407
+              
408
+            }
409
+          }
410
+          this.editor_dialogVisible = false
411
+        }
412
+      })
413
+      return this.tableData
332 414
     },
333 415
     // 转换时间
334 416
     getTime(val) {
@@ -341,6 +423,78 @@ export default{
341 423
         return uParseTime(val, '{y}-{m}-{d}')
342 424
         }
343 425
     },
426
+    // 表格数据源
427
+    getlist(){
428
+      var params = {
429
+        patient_id:this.patient_id,
430
+        limit:this.limit,
431
+        is_type:8,
432
+        page:this.page,
433
+      }
434
+      getPatientBedlist(params).then(response =>{
435
+        if(response.data.state == 1){
436
+          const list = response.data.data.list
437
+          console.log('list',list);
438
+          list.forEach(item => {
439
+            // if(item.text !=''){
440
+              const text=JSON.parse(item.text)
441
+              const arr ={
442
+                id:item.id,
443
+                time:text.date,
444
+                xinli:this.table_xinli(text.xinli),
445
+                ganqing:this.table_gangqing(text.radio1),
446
+                zishang:this.table_gangqing(text.radio2),
447
+                shangra:this.table_gangqing(text.radio3),
448
+                evaluate:this.getoptions(text.appraiser),
449
+                
450
+              }
451
+            // }
452
+            this.tableData.push(arr)
453
+          });
454
+         
455
+        }
456
+      })
457
+    },
458
+    getTime2(val) {
459
+        if(val < 0){
460
+          return ""
461
+        }
462
+        if(val == ""){
463
+        return ""
464
+        }else {
465
+        return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
466
+        }
467
+    },
468
+    table_xinli(item){
469
+      var arr =[]
470
+      for(let i in item){
471
+        console.log(item[0]);
472
+        for(let j in this.xinli){
473
+          if(item[i] == this.xinli[j].id){
474
+            arr.push(this.xinli[j].label)
475
+          }
476
+        }
477
+        var arr2 = arr.join()
478
+          console.log('arr2',arr2);
479
+      }
480
+      return arr2
481
+    },
482
+    table_gangqing(ids){
483
+      for(let i in this.qingan){
484
+        if(ids == this.qingan[i].value){
485
+         return this.qingan[i].label
486
+        }
487
+      }
488
+    },
489
+     // 评估护士
490
+    getoptions(ids){
491
+     const options= this.optionsarr
492
+      for(let i in options){
493
+        if(options[i].id == ids){
494
+          return options[i].label
495
+        }
496
+      }
497
+    }
344 498
   }
345 499
 }
346 500
 </script>

文件差異過大導致無法顯示
+ 496 - 179
src/xt_pages/user/history/nourishment_history.vue


+ 408 - 81
src/xt_pages/user/history/pruritus_history.vue 查看文件

@@ -37,25 +37,25 @@
37 37
             align="center">
38 38
           </el-table-column>
39 39
           <el-table-column
40
-            prop="name"
40
+            prop="buwei1"
41 41
             label="痒的部位"
42 42
             width=""
43 43
             align="center">
44 44
           </el-table-column>
45 45
           <el-table-column
46
-            prop="name"
46
+            prop="radio1"
47 47
             label="痒的程度"
48 48
             width=""
49 49
             align="center">
50 50
           </el-table-column>
51 51
           <el-table-column
52
-            prop="name"
52
+            prop="radio2"
53 53
             label="痒的频率"
54 54
             width=""
55 55
             align="center">
56 56
           </el-table-column>
57 57
           <el-table-column
58
-            prop="name"
58
+            prop="radio3"
59 59
             label="痒对睡眠的影响"
60 60
             width=""
61 61
             align="center">
@@ -99,9 +99,9 @@
99 99
             <div style="width:100%">
100 100
               <div style="text-align: center;"><h1>血液透析中心营养状况评估记录</h1></div>
101 101
               <div style="margin-top: 20px;font-size: 16px;">
102
-                <span>患者姓名:</span>
103
-                <span>透析号:</span>
104
-                <span>打印时间</span>
102
+                <span>患者姓名:{{Patient_info.name}}</span>&nbsp;&nbsp;
103
+                <span>透析号:{{Patient_info.dialysis_no}}</span>&nbsp;&nbsp;
104
+                <span>打印时间:{{dayin}}</span>
105 105
               </div>
106 106
               <table class="table" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
107 107
                 <tr>
@@ -141,15 +141,15 @@
141 141
         </div>
142 142
 
143 143
         <div id="mingxi" >
144
-          <div class="diedao_content" style="">
144
+          <div class="diedao_content" style="" v-for="items in multipleSelection">
145 145
             <div style="width:100%;margin-top: 20px;">
146 146
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
147 147
               <div style="margin-top: 20px;font-size: 16px;">
148
-                <span>患者姓名:</span>
149
-                <span>透析号:</span>
150
-                <span>评估日期:</span>
151
-                <span>评估护士:</span>
152
-                <span>总分:</span>
148
+                <span>患者姓名:{{Patient_info.name}}</span>&nbsp;&nbsp;
149
+                <span>透析号:{{Patient_info.dialysis_no}}</span>&nbsp;&nbsp;
150
+                <span>评估日期:{{items.time}}</span>&nbsp;&nbsp;
151
+                <span>责任护士:{{items.evaluate}}</span>&nbsp;&nbsp;
152
+                <span>评分:{{items.mark}}</span>
153 153
               </div>
154 154
               <div>
155 155
                 <table class="table" border="1" style="width: 100%;border-collapse: collapse;">
@@ -165,52 +165,55 @@
165 165
                     <tr>
166 166
                       <td class="start">痒的部位</td>
167 167
                       <td>
168
-                          <div class="jiange">
169
-                              <span v-for="item in buwei" class="rightjiange" >
170
-                                  <label><input type="checkbox" name="ball" :value="item" />&nbsp;{{ item }}</label>
171
-                              </span>
172
-                              <label ><input type="checkbox" name="ball" value="其他" />
173
-                                  &nbsp;其他 <span style="display: inline-block;border-bottom:1px solid #DCDFE6;width: 60px;"></span>
174
-                              </label>
175
-                          </div>
168
+                        <div class="jiange">
169
+                          <span v-for="item in items.buwei2" class="rightjiange" >
170
+                              <label><input type="checkbox" class="check" :value="item.id" v-model="item.is_check"  @click="handleCheckedCitiesChange($event,item)"/>&nbsp;{{ item.label }}</label>
171
+                          </span>
172
+                          <label ><input type="checkbox" class="check" value="其他"  v-model="items.is_check1" @click="qita_click"/>
173
+                              &nbsp;其他 <el-input v-model="buwei_input" style="width: 100px;"></el-input>
174
+                          </label>
175
+                          <label >
176
+                            <input type="checkbox" class="checkbox" value="全身" v-model="items.is_check2" @click="quan_change"/>&nbsp;全身
177
+                          </label>
178
+                        </div>
176 179
                       </td>
177
-                      <td class="start">{{checked_points}}</td>
180
+                      <td class="start">{{items.checked_points}}</td>
178 181
                       <td class="saoyang">瘙痒部位:计分范围1~3分一个部位瘙痒计1分,最多得3分,选全身计3分</td>
179 182
                     </tr>
180 183
                     <tr>
181 184
                       <td class="start">痒的程度</td>
182 185
                       <td>
183 186
                           <div class="jiange">
184
-                              <el-radio-group  >
185
-                                  <el-radio v-for="(item,index ) in chengdu" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
186
-                              </el-radio-group>
187
+                            <el-radio-group v-model="items.radio1_points" @change="radiochecked">
188
+                                <el-radio v-for="(item,index ) in chengdu" :label="item.value" :key="index" style="color: black;font-size: 15PX;">{{ item.label }}</el-radio>
189
+                            </el-radio-group>
187 190
                           </div>
188 191
                       </td>
189
-                      <td class="start">{{radio1_points}}</td>
192
+                      <td class="start">{{items.radio1_points}}</td>
190 193
                       <td class="saoyang">瘙痒严重程度:计分范围1~5分</td>
191 194
                     </tr>
192 195
                     <tr>
193 196
                       <td class="start">痒的频率</td>
194 197
                       <td>
195 198
                           <div  class="jiange">
196
-                              <el-radio-group >
197
-                                  <el-radio v-for="(item,index ) in pinlv" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
198
-                              </el-radio-group>
199
+                            <el-radio-group v-model="items.radio2_points" @change="radiochecked">
200
+                                <el-radio v-for="(item,index ) in pinlv" :label="item.value" :key="index" style="color: black;font-size: 15PX;">{{ item.label }}</el-radio>
201
+                            </el-radio-group>
199 202
                           </div>
200 203
                       </td>
201
-                      <td class="start">{{radio2_points}}</td>
204
+                      <td class="start">{{items.radio2_points}}</td>
202 205
                       <td class="saoyang">瘙痒频率:计分范围1~5分瘙痒有过4次,每次<10min或有1次瘙痒>10min计1分,以此类推,一直持续计5分</td>
203 206
                     </tr>
204 207
                     <tr>
205 208
                       <td class="start">痒对睡眠的影响</td>
206 209
                       <td>
207 210
                           <div  class="jiange">
208
-                              <el-radio-group >
209
-                                  <el-radio v-for="(item,index ) in yingxiang" :label="item" :key="index" style="color: black;font-size: 15PX;">{{ item }}</el-radio>
210
-                              </el-radio-group>
211
+                            <el-radio-group v-model="items.radio3_points" @change="radiochecked">
212
+                                <el-radio v-for="(item,index ) in yingxiang" :label="item.value" :key="index" style="color: black;font-size: 15PX;">{{ item.label }}</el-radio>
213
+                            </el-radio-group>
211 214
                           </div>
212 215
                       </td>
213
-                      <td class="start">{{radio3_points}}</td>
216
+                      <td class="start">{{items.radio3_points}}</td>
214 217
                       <td class="saoyang">
215 218
                           瘙痒对睡眠的影响:计分范围0~6分无影响0分,一夜痒醒1次计2分,一夜痒醒2次计4分,一夜痒醒3次以上计6分
216 219
                       </td>
@@ -219,7 +222,7 @@
219 222
                 </table>
220 223
               </div>
221 224
             </div>
222
-            <div style="font-size: 16px;">打印时间</div>
225
+            <div style="font-size: 16px;">打印时间:{{dayin}}</div>
223 226
           </div>
224 227
         </div>
225 228
       </div>
@@ -244,14 +247,13 @@
244 247
               <tr>
245 248
                 <td class="start">痒的部位</td>
246 249
                 <td>
247
-                  <div class="jiange"><!-- v-model="item.is_check" v-model="is_check1" v-model="is_check2"-->
250
+                  <div class="jiange" style=''><!-- v-model="item.is_check" v-model="is_check1" v-model="is_check2"-->
248 251
                     <span v-for="item in buwei" class="rightjiange" >
249
-                        <label><input type="checkbox" class="check" :value="item.label" v-model="item.is_check" @click="handleCheckedCitiesChange($event,item)"/>&nbsp;{{ item.label }}</label>
252
+                        <label><input type="checkbox" class="check" :value="item.id" v-model="item.is_check" @click="handleCheckedCitiesChange($event,item)"/>&nbsp;{{ item.label }}</label>
250 253
                     </span>
251 254
                     <label ><input type="checkbox" class="check" value="其他"  v-model="is_check1" @click="qita_click"/>
252 255
                         &nbsp;其他 <el-input v-model="buwei_input" style="width: 100px;"></el-input>
253 256
                     </label>
254
-                    <!-- quan_change -->
255 257
                     <label >
256 258
                       <input type="checkbox" class="checkbox" value="全身" v-model="is_check2" @click="quan_change"/>&nbsp;全身
257 259
                     </label>
@@ -313,7 +315,7 @@
313 315
             <div class="bottoms">
314 316
               <span>评估日期:</span>
315 317
               <el-date-picker
316
-                  v-model="pruritus_data"
318
+                  v-model="pruritus_date"
317 319
                   type="date"
318 320
                   value-format="yyyy-MM-dd"
319 321
                   placeholder="选择日期"
@@ -327,9 +329,9 @@
327 329
               <el-select v-model="pruritus_appraiser" placeholder="请选择" >
328 330
                   <el-option
329 331
                   v-for="item in pruritus_options"
330
-                  :key="item.value"
332
+                  :key="item.id"
331 333
                   :label="item.label"
332
-                  :value="item.value"
334
+                  :value="item.id"
333 335
                   style="width:150px;">
334 336
                   </el-option>
335 337
               </el-select>
@@ -357,6 +359,8 @@
357 359
 <script>
358 360
 import print from 'print-js'
359 361
 import { uParseTime } from '@/utils/tools'
362
+import {getAllNurseList,savePatientHpressuresore,getPatientBedlist,getPedPatientFallAssessmentById,
363
+  deletePedPatientFallassment,updateBedPatientList} from '@/api/fallassement'
360 364
 export default{
361 365
   data(){
362 366
     return{
@@ -385,37 +389,57 @@ export default{
385 389
       check1:0,
386 390
       is_check2:false,
387 391
       check2:0,
388
-      pruritus_options:[],
392
+      pruritus_options:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
389 393
       pruritus_appraiser:'',
390 394
       buwei_input:'',
391
-      pruritus_data:this.getTime(new Date()),
392
-      tableData:[{id:1,time:'2023-9-27',mark:'15',evaluate:'千亦雪'},{id:2,time:'2023-9-27',mark:'14',evaluate:'千任雪'}],
393
-
394
-      buwei:[{label:'躯体',is_check:false,check:0},{label:'上肢',is_check:false,check:0},{label:'下肢',is_check:false,check:0},{label:'头皮',is_check:false,check:0},],
395
+      pruritus_date:this.getTime(new Date()),
396
+      limit:10,
397
+      page:1,
398
+      patient_id:'',
399
+      Patient_info:{},
400
+      buwei_show:[],//选中部位
401
+      buwei_show1:[],//选中部位
402
+      tableData:[],
403
+      row_id:0,
404
+      saoyang_zong:0,
405
+      dayin:this.getTime2(new Date()),
406
+      buwei:[{id:1,label:'躯体',is_check:false,check:0},{id:2,label:'上肢',is_check:false,check:0},{id:3,label:'下肢',is_check:false,check:0},{id:4,label:'头皮',is_check:false,check:0},],
395 407
       chengdu:[{value:1,label:'不要抓(1)'},{value:2,label:'要抓但没有抓痕(2)'},{value:3,label:'抓出抓痕才能止痒(3)'},{value:4,label:'经常抓出抓痕(4)'},{value:5,label:'完全坐立不安(5)'}],
396 408
       pinlv:[{value:1,label:'很少时候(1)'},{value:2,label:'较少时候(2)'},{value:3,label:'较多时候(3)'},{value:4,label:'很多时候(4)'},{value:5,label:'一直持续(5)'}],
397 409
       yingxiang:[{value:0,label:'无影响(0)'},{value:2,label:'一夜痒醒一次(2)'},{value:4,label:'一夜痒醒两次(4)'},{value:6,label:'一夜痒醒三次(6)'}],
398 410
       
399 411
     }
400 412
   },
413
+  created(){
414
+    this.patient_id = this.$route.query.patient_id
415
+    this.Patient_info = this.$route.query.Patient_info
416
+    this.getlist()
417
+  },
401 418
   methods:{
419
+    // 返回
402 420
     fanhui(){
403 421
       window.history.go(-1);
404 422
     },
423
+    // 选中
405 424
     handleSelectionChange(val) {
425
+      console.log('val',val);
406 426
       this.multipleSelection = val;
407 427
     },
428
+    // 评分/明细
408 429
     open_print(ids){
409 430
       if(this.multipleSelection.length==0){
410 431
         this.$message('请选择需要打印的记录')
411 432
       }else{
412 433
         if(ids==1){
434
+          // 评分
413 435
           this.dialogVisible=true
414 436
         }else{
437
+          // 明细
415 438
           this.mingxi_dialogVisible=true
416 439
         }
417 440
       }
418 441
     },
442
+    // 打印
419 443
     print_pingfen(ids){
420 444
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
421 445
       if(ids==1){
@@ -437,45 +461,120 @@ export default{
437 461
       }
438 462
 
439 463
     },
464
+    // 修改弹窗
440 465
     open_xiugai(row){
466
+      this.row_id = row.id
441 467
       this.editor_dialogVisible=true
468
+      getPedPatientFallAssessmentById(row.id).then(response =>{
469
+        if(response.data.state == 1){
470
+          const pruritus = response.data.data.fallassessment
471
+          for(let i in this.buwei){
472
+            this.buwei[i].is_check = false
473
+            this.buwei[i].check = 0
474
+            this.buwei_show.length=0
475
+          }
476
+          if(pruritus.text !=''){
477
+            const text = JSON.parse(pruritus.text)
478
+            console.log('vvvvv',text);
479
+
480
+            for(let i in this.buwei){
481
+              for(let j in text.buwei){
482
+                if(text.buwei[j] == this.buwei[i].id){
483
+                  this.buwei[i].is_check = true
484
+                  this.buwei[i].check = 1
485
+                  this.buwei_show.push(text.buwei[j])
486
+                }
487
+              }
488
+            }
489
+            this.buwei_show1 = text.buwei1
490
+            this.is_check1 = text.is_check1
491
+            this.is_check2 = text.is_check2
492
+            this.checked_points =text.checked_points
493
+            this.radio1 = text.radio1
494
+            this.radio2 = text.radio2
495
+            this.radio3 = text.radio3
496
+            this.radio1_points = text.radio1
497
+            this.radio2_points = text.radio2
498
+            this.radio3_points = text.radio3
499
+            this.pruritus_appraiser = text.appraiser
500
+            this.buwei_input = text.buwei_input
501
+            this.pruritus_date = text.date
502
+            this.pruritus_Totalpoints = text.total
503
+            this.num = text.num 
504
+          }
505
+        }
506
+      })
442 507
     },
508
+    // 删除弹窗
443 509
     open_delet(row){
444 510
       this.row=row.id
445 511
       this.delete_centerDialogVisible=true
446 512
     },
513
+    // 删除确认
447 514
     delete_pruritus(){
448
-      for(let i=0;i<this.tableData.length;i++){
449
-        if(this.row==this.tableData[i].id){
450
-          this.tableData.splice(i,1)
515
+      deletePedPatientFallassment(this.row).then(response =>{
516
+        if(response.data.state == 1){
517
+          for(let i=0;i<this.tableData.length;i++){
518
+            if(this.row==this.tableData[i].id){
519
+              this.tableData.splice(i,1)
520
+            }
521
+          }
522
+          this.$message({message:'删除成功',type:'success'})
451 523
         }
452
-      }
524
+      })
453 525
       this.delete_centerDialogVisible=false
526
+
454 527
     },
455 528
      // 痒的部位选项
456 529
      handleCheckedCitiesChange(e,item){
530
+      console.log('333333',item);
457 531
       for(let i in this.buwei){
458 532
         if(item.label==this.buwei[i].label){
459 533
           if(item.check==0){
534
+            this.buwei[i].check = 1
535
+            this.buwei[i].is_check = true
460 536
             if(this.num <3){
461 537
               if(this.is_check2 == true){
462 538
                 this.is_check2 = false
463 539
                 this.check = 0
464 540
                 this.checked_points = 0
465 541
               }
466
-              this.buwei[i].check = 1
467
-              this.buwei[i].is_check = true
468 542
               console.log('1111',this.buwei[i]);
469 543
               this.num++
470 544
               this.checked_points = this.checked_points + 1
471 545
             }
472
-            
546
+            if(this.buwei_show1.length >0){
547
+              for(let j in this.buwei_show1){
548
+                if('全身' == this.buwei_show1[j]){
549
+                  let index = this.buwei_show1.indexOf(this.buwei_show1[j]);
550
+                  this.buwei_show1.splice(index,1)
551
+                }
552
+              }
553
+            }
554
+            this.buwei_show.push(item.id)
555
+            this.buwei_show1.push(item.label)
556
+            console.log('this.buwei_show',this.buwei_show);
473 557
           }else{
474 558
             this.buwei[i].check = 0
475 559
             this.buwei[i].is_check = false
476 560
             console.log('2222',this.buwei[i]);
477 561
             this.num--
478 562
             this.checked_points = this.checked_points - 1
563
+            if(this.buwei_show.length >0){
564
+              for(let j in this.buwei_show){
565
+                if(item.id == this.buwei_show[j]){
566
+                  let index = this.buwei_show.indexOf(this.buwei_show[j]);
567
+                  this.buwei_show.splice(index,1)
568
+                }
569
+              }
570
+              for(let j in this.buwei_show1){
571
+                if(item.label == this.buwei_show1[j]){
572
+                  let index = this.buwei_show1.indexOf(this.buwei_show1[j]);
573
+                  this.buwei_show1.splice(index,1)
574
+                }
575
+              }
576
+            }
577
+            console.log('this.buwei_show2',this.buwei_show);
479 578
           }
480 579
         }
481 580
       }
@@ -488,6 +587,9 @@ export default{
488 587
         if(this.is_check2 == false){
489 588
           this.check2 = 1
490 589
           this.is_check2 = true
590
+          this.check1 = 0
591
+          this.is_check1 = false
592
+          this.buwei_show.length = 0
491 593
           this.checked_points =3
492 594
           this.num = 0
493 595
           for(let i in this.buwei){
@@ -496,12 +598,20 @@ export default{
496 598
               this.buwei[i].check = 0
497 599
             }
498 600
           }
601
+          this.buwei_show1.length = 0
602
+          this.buwei_show1.push('全身')
499 603
           console.log('uuuu',this.check2,this.is_check2);
500 604
         }else{
501 605
           this.check2 = 0
502 606
           this.is_check2 = false
503 607
           this.checked_points =0
504 608
           this.num = 0
609
+          for(let j in this.buwei_show1){
610
+            if(ball == this.buwei_show1[j]){
611
+              let index = this.buwei_show1.indexOf(this.buwei_show1[j]);
612
+              this.buwei_show1.splice(index,1)
613
+            }
614
+          }
505 615
           console.log('iiiii',this.check2,this.is_check2);
506 616
         }
507 617
       }
@@ -511,19 +621,38 @@ export default{
511 621
       const ball=e.target.value
512 622
       console.log(ball);
513 623
       if(ball =='其他'){
514
-      console.log('this.is_check1',this.is_check1);
624
+        console.log('this.is_check1',this.is_check1);
515 625
         if(this.is_check1 == false){
626
+          this.check1 = 1
627
+          this.is_check1 = true
628
+          this.check2 = 0
629
+          this.is_check2 = false
516 630
           if(this.num < 3){
517
-            this.check1 = 1
518
-            this.is_check1 = true
519 631
             this.checked_points =this.checked_points + 1
520 632
             this.num++
521 633
           }
634
+          if(this.buwei_show1.length >0){
635
+            for(let j in this.buwei_show1){
636
+              if('全身' == this.buwei_show1[j]){
637
+                let index = this.buwei_show1.indexOf(this.buwei_show1[j]);
638
+                this.buwei_show1.splice(index,1)
639
+              }
640
+            }
641
+          }
642
+          this.buwei_show1.push(ball)
522 643
         }else{
523
-          this.check2 = 0
524
-          this.is_check2 = false
525
-          this.checked_points =this.checked_points - 1
526
-          this.num--
644
+          this.check1 = 0
645
+          this.is_check1 = false
646
+          if(this.num < 3){
647
+            this.checked_points =this.checked_points - 1
648
+            this.num--
649
+          }
650
+          for(let j in this.buwei_show1){
651
+            if(ball == this.buwei_show1[j]){
652
+              let index = this.buwei_show1.indexOf(this.buwei_show1[j]);
653
+              this.buwei_show1.splice(index,1)
654
+            }
655
+          }
527 656
         }
528 657
       }
529 658
     },
@@ -532,33 +661,97 @@ export default{
532 661
       console.log('eeeee',e);
533 662
       if(e == this.radio1){
534 663
         this.radio1_points =e
664
+        this.radio1 =e
535 665
       }
536 666
       if(e == this.radio2){
537 667
         this.radio2_points =e
668
+        this.radio2 =e
538 669
       }
539 670
       if(e == this.radio3){
540 671
         this.radio3_points =e
672
+        this.radio3 =e
541 673
       }
542 674
     },
543 675
     // 确认
544 676
     pruritus_click(){
545
-      var params = {
546
-        radio1:this.radio1,
547
-        radio2:this.radio2,
548
-        radio3:this.radio3,
549
-        pruritus_options:this.pruritus_options,//评估数据
550
-        pruritus_appraiser:this.pruritus_appraiser,//评估人
551
-        pruritus_data:this.pruritus_data,//时间
552
-        pruritus_Totalpoints:this.pruritus_Totalpoints,//总分
553
-        patientID:this.patientID,
554
-        buwei:this.buwei,//部位
555
-        is_check1:this.is_check1,//其它选项model
556
-        check1:this.check1,//其它选项
557
-        is_check2:this.is_check2,//全部选项model
558
-        check2:this.check2,//全部选项
559
-        num:this.num,//控制复选个数
560
-        buwei_input:this.buwei_input,
677
+      const data={}
678
+      var list = []
679
+      data['radio1'] = this.radio1
680
+      data['radio2'] = this.radio2
681
+      data['radio3'] = this.radio3
682
+      data['date'] = this.pruritus_date
683
+      data['appraiser'] = this.pruritus_appraiser
684
+      data['total'] = this.pruritus_Totalpoints
685
+      data['buwei'] = this.buwei_show
686
+      data['is_check1'] = this.is_check1
687
+      data['check1'] = this.check1
688
+      data['buwei_input'] = this.buwei_input
689
+      data['is_check2'] = this.is_check2
690
+      data['check2'] = this.check2
691
+      data['num'] = this.num
692
+      data['buwei1'] = this.buwei_show1
693
+      data['buwei2'] =this.buwei
694
+      data['checked_points'] = this.checked_points
695
+      list.push(data)
696
+      var params={
697
+        patient_id:this.patient_id,
698
+        record_date:this.pruritus_date,
699
+        is_type:9,
700
+        list:list,
701
+        id:this.row_id
561 702
       }
703
+      console.log('params-----',list);
704
+      updateBedPatientList(params).then(response =>{
705
+        if(response.data.state ==1){
706
+          const pruit = response.data.data.pedFallssessment
707
+          
708
+          if(pruit.text != ''){
709
+            const text = JSON.parse(pruit.text)
710
+            console.log('11111',text)
711
+            for(let i in this.tableData){
712
+              if(pruit.id == this.tableData[i].id){
713
+                this.tableData[i].id = pruit.id
714
+                this.tableData[i].radio1 = this.getchegdu(text.radio1),
715
+                this.tableData[i].radio2 = this.getpinlv(text.radio2),
716
+                this.tableData[i].radio3 = this.getyingx(text.radio3),
717
+                this.tableData[i].evaluate = this.getoptions(text.appraiser),//评估人
718
+                this.tableData[i].time = text.date,//时间
719
+                this.tableData[i].mark = text.total,//总分
720
+                this.tableData[i].buwei = this.getbuwei(text.buwei),//部位
721
+                this.tableData[i].is_check1 = text.is_check1,//其它选项model
722
+                this.tableData[i].check1 = text.check1,//其它选项
723
+                this.tableData[i].is_check2 = text.is_check2,//全部选项model
724
+                this.tableData[i].check2 = text.check2,//全部选项
725
+                this.tableData[i].num = text.num,//控制复选个数
726
+                this.tableData[i].buwei_input = text.buwei_input,
727
+                this.tableData[i].buwei1 = this.getbuwei(text.buwei1,text.buwei_input),
728
+                this.tableData[i].checked_points = text.checked_points
729
+                this.tableData[i].buwei2 = text.buwei2
730
+              }
731
+            }
732
+          }
733
+          this.$message({message:'保存成功',type:'success'})
734
+        }
735
+      })
736
+      this.editor_dialogVisible = false
737
+      return this.tableData
738
+      // var params = {
739
+      //   radio1:this.radio1,
740
+      //   radio2:this.radio2,
741
+      //   radio3:this.radio3,
742
+      //   pruritus_options:this.pruritus_options,//评估数据
743
+      //   pruritus_appraiser:this.pruritus_appraiser,//评估人
744
+      //   pruritus_date:this.pruritus_date,//时间
745
+      //   pruritus_Totalpoints:this.pruritus_Totalpoints,//总分
746
+      //   patientID:this.patientID,
747
+      //   buwei:this.buwei,//部位
748
+      //   is_check1:this.is_check1,//其它选项model
749
+      //   check1:this.check1,//其它选项
750
+      //   is_check2:this.is_check2,//全部选项model
751
+      //   check2:this.check2,//全部选项
752
+      //   num:this.num,//控制复选个数
753
+      //   buwei_input:this.buwei_input,
754
+      // }
562 755
     },
563 756
     // 转换时间
564 757
     getTime(val) {
@@ -571,11 +764,145 @@ export default{
571 764
         return uParseTime(val, '{y}-{m}-{d}')
572 765
         }
573 766
     },
574
-
767
+    getTime2(val) {
768
+        if(val < 0){
769
+          return ""
770
+        }
771
+        if(val == ""){
772
+        return ""
773
+        }else {
774
+        return uParseTime(val, '{y}-{m}-{d} {h}:{i}:{s}')
775
+        }
776
+    },
777
+    // 数据源
778
+    getlist(){
779
+      var params = {
780
+        patient_id:this.patient_id,
781
+        limit:this.limit,
782
+        is_type:9,
783
+        page:this.page,
784
+      }
785
+      getPatientBedlist(params).then(response =>{
786
+        if(response.data.state ==1){
787
+          const list = response.data.data.list
788
+          // console.log('1111',list);
789
+          list.forEach(item =>{
790
+            if(item.text !=''){
791
+                const text = JSON.parse(item.text)
792
+                console.log('ttttt',text);
793
+                const arr ={
794
+                  id:item.id,
795
+                  radio1:this.getchegdu(text.radio1),
796
+                  radio2:this.getpinlv(text.radio2),
797
+                  radio3:this.getyingx(text.radio3),
798
+                  radio3_points:text.radio3,
799
+                  radio2_points:text.radio2,
800
+                  radio1_points:text.radio1,
801
+                  evaluate:this.getoptions(text.appraiser),//评估人
802
+                  time:text.date,//时间
803
+                  mark:text.total,//总分
804
+                  buwei:text.buwei,//部位
805
+                  is_check1:text.is_check1,//其它选项model
806
+                  check1:text.check1,//其它选项
807
+                  is_check2:text.is_check2,//全部选项model
808
+                  check2:text.check2,//全部选项
809
+                  num:text.num,//控制复选个数
810
+                  buwei_input:text.buwei_input,
811
+                  buwei2:text.buwei2,
812
+                  buwei1:this.getbuwei(text.buwei1,text.buwei_input),
813
+                  checked_points:text.checked_points
814
+                }
815
+                this.tableData.push(arr)
816
+            }
817
+          })
818
+        }
819
+      })
820
+    },
821
+    // 评估人
822
+    getoptions(ids){
823
+     const options= this.pruritus_options
824
+      for(let i in options){
825
+        if(options[i].id == ids){
826
+          return options[i].label
827
+        }
828
+      }
829
+    },
830
+    // 瘙痒部位
831
+    getbuwei(item,val){
832
+      for(let i in item){
833
+        if(item[i]=='其他'){
834
+         var arr =  item[i]+'('+val+')'
835
+         let index = item.indexOf('其他');
836
+          item.splice(index,1)
837
+          item.push(arr)
838
+        }
839
+      }
840
+      // console.log('1111',item,val,arr);
841
+      // var arr =[]
842
+      // for(let i in item){
843
+      //   // console.log(item[0]);
844
+      //   for(let j in this.buwei){
845
+      //     if(item[i] == this.buwei[j].id){
846
+      //       arr.push(this.buwei[j].label)
847
+      //     }
848
+      //   }
849
+      //   var arr2 = arr.join()
850
+      //     // console.log('arr2',arr2);
851
+      // }
852
+      var arr2 = item.join(';')
853
+      return arr2
854
+    },
855
+    // getbuwei1(value,val){
856
+    //   if(value == true){
857
+    //     const val = '其他'+'('+val+')'
858
+    //     return val
859
+    //   }
860
+    // },
861
+    // getbuwei2(value){
862
+    //   if(value == true){
863
+    //     const val = '全身'
864
+    //     return val
865
+    //   }
866
+    // },
867
+    getchegdu(val){
868
+      const text = this.chengdu
869
+      for(let i in text){
870
+        if(val == text[i].value){
871
+          const text1 = text[i].label.split('(')[0]
872
+          // console.log('text',text[i].label.split('(')[0],text1);
873
+          return text1
874
+        }
875
+      }
876
+    },
877
+    getpinlv(val){
878
+      const text = this.pinlv
879
+      for(let i in text){
880
+        if(val == text[i].value){
881
+          const text1 = text[i].label.split('(')[0]
882
+          return text1
883
+        }
884
+      }
885
+    },
886
+    getyingx(val){
887
+      const text = this.yingxiang
888
+      for(let i in text){
889
+        if(val == text[i].value){
890
+          const text1 = text[i].label.split('(')[0]
891
+          return text1
892
+        }
893
+      }
894
+    },
575 895
   },
576 896
   computed:{
577
-    pruritus_Totalpoints(){
578
-      return this.checked_points + this.radio1_points + this.radio2_points +this.radio3_points
897
+    pruritus_Totalpoints:{
898
+      get(){
899
+        this.saoyang_zong=this.checked_points + this.radio1_points + this.radio2_points +this.radio3_points
900
+        return this.saoyang_zong
901
+      },
902
+      set(val){
903
+        return this.saoyang_zong = val
904
+      }
905
+     
579 906
     }
580 907
   }
581 908
 }
@@ -625,11 +952,11 @@ export default{
625 952
         background: rgb(243, 240, 240);
626 953
     }
627 954
     .jiange{
628
-        margin-left: 20px;
955
+        margin-left: 10px;
629 956
         color: black;
630 957
     }
631 958
     .rightjiange{
632
-      margin-right: 40px;
959
+      margin-right: 30px;
633 960
       font-size: 15px;
634 961
     }
635 962
     input{