Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 1 year ago
parent
commit
facd0ec11d
27 changed files with 3937 additions and 1557 deletions
  1. 74 0
      src/api/fallassement.js
  2. 28 1
      src/xt_pages/qcd/patientControlAnalysis.vue
  3. 1 1
      src/xt_pages/user/Informed/components/Medicalhistory.vue
  4. 63 63
      src/xt_pages/user/components/PatientSidebar.vue
  5. 27 16
      src/xt_pages/user/evaluationtool/Cathetershedding.vue
  6. 18 18
      src/xt_pages/user/evaluationtool/Fallassessment.vue
  7. 93 50
      src/xt_pages/user/evaluationtool/Glasgow.vue
  8. 63 20
      src/xt_pages/user/evaluationtool/Muscleforce.vue
  9. 105 109
      src/xt_pages/user/evaluationtool/OHpressuresore.vue
  10. 13 2
      src/xt_pages/user/evaluationtool/RassAssessment.vue
  11. 17 6
      src/xt_pages/user/evaluationtool/dailyLife.vue
  12. 2829 737
      src/xt_pages/user/evaluationtool/hemodialysis.vue
  13. 15 6
      src/xt_pages/user/evaluationtool/mindAssessment.vue
  14. 13 2
      src/xt_pages/user/evaluationtool/nourishmentAssessment.vue
  15. 4 3
      src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue
  16. 10 11
      src/xt_pages/user/evaluationtool/pressuresore.vue
  17. 16 5
      src/xt_pages/user/evaluationtool/pruritusAssessment.vue
  18. 17 4
      src/xt_pages/user/history/Children_history.vue
  19. 26 6
      src/xt_pages/user/history/Pressure_history.vue
  20. 12 4
      src/xt_pages/user/history/RASS_history.vue
  21. 33 21
      src/xt_pages/user/history/daoguan_history.vue
  22. 19 9
      src/xt_pages/user/history/date_history.vue
  23. 18 7
      src/xt_pages/user/history/mind_history.vue
  24. 11 1
      src/xt_pages/user/history/nourishment_history.vue
  25. 23 10
      src/xt_pages/user/history/pruritus_history.vue
  26. 388 444
      src/xt_pages/user/history/tumble_history.vue
  27. 1 1
      src/xt_pages/user/patients.vue

+ 74 - 0
src/api/fallassement.js View File

143
       data:data
143
       data:data
144
     })
144
     })
145
   }
145
   }
146
+
147
+
148
+  export function getPatientFallaessmentListByIds(params){
149
+   
150
+    return request({
151
+      url:"/api/patient/getpatientfallaessmentlistbyids",
152
+      method:"get",
153
+      params:params
154
+    })
155
+  }
156
+
157
+
158
+  export function getPatientFallaessmentListOne(params){
159
+  
160
+    return request({
161
+      url:"/api/patient/getpatientfallaessmentlistone",
162
+      method:"get",
163
+      params:params
164
+    })
165
+  }
166
+
167
+  export function savePatientBraden(data){
168
+    
169
+    return request({
170
+      url:"/api/patient/savepatientbraden",
171
+      method:"post",
172
+      data:data,
173
+    })
174
+  }
175
+
176
+  export function getPatientBradenlist(params){
177
+    
178
+    return request({
179
+      url:"/api/patient/getpatientbradenlist",
180
+      method:"get",
181
+      params:params
182
+    })
183
+  }
184
+
185
+  export function getPatientBradenById(id,params){
186
+   
187
+    return request({
188
+      url:"/api/patient/getpatientbradenbyid?id="+id,
189
+      method:"get",
190
+      params:params
191
+    })
192
+  }
193
+
194
+  export function updatePatientBraden(data){
195
+   
196
+    return request({
197
+      url:"/api/patient/updatepatientbraden",
198
+      method:"post",
199
+      data:data,
200
+    })
201
+  }
202
+
203
+  export function deletePatientBraden(id,params){
204
+  
205
+    return request({
206
+      url:"/api/patient/deletepatientbraden?id="+id,
207
+      method:"Get",
208
+      params:params,
209
+    })
210
+  }
211
+
212
+  export function getBatchPatientBraden(ids,patinet_id,params){
213
+   
214
+    return request({
215
+      url:"/api/patient/getbatchpatientbraden?ids="+ids+"&patient_id="+patinet_id,
216
+      method:"get",
217
+      params:params,
218
+    })
219
+  }

+ 28 - 1
src/xt_pages/qcd/patientControlAnalysis.vue View File

77
         </div>
77
         </div>
78
         <div>
78
         <div>
79
           <el-button type="primary" size="small" style="margin-bottom: 10px;" @click="toExportList">导出</el-button>
79
           <el-button type="primary" size="small" style="margin-bottom: 10px;" @click="toExportList">导出</el-button>
80
-          <el-button type="primary" size="small" style="margin-bottom: 10px;" @click="getPatientInspectionList">导出2</el-button>
80
+          <!-- <el-button type="primary" size="small" style="margin-bottom: 10px;" @click="getPatientInspectionList">导出2</el-button> -->
81
           <el-table :data="tableData" v-loading="isLoadingTwo" border style="width: 100%"
81
           <el-table :data="tableData" v-loading="isLoadingTwo" border style="width: 100%"
82
                     :row-style="{ color: '#303133' }"
82
                     :row-style="{ color: '#303133' }"
83
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
83
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
854
           if(response.data.state ==1){
854
           if(response.data.state ==1){
855
             var list = response.data.data.list
855
             var list = response.data.data.list
856
             console.log("list----------",list)
856
             console.log("list----------",list)
857
+            import("@/vendor/Export2Excel").then((excel) => {
858
+              
859
+                
860
+              if(list!=null && list.length>0){
861
+                
862
+                for(let i=0;i<list.length;i++){
863
+                  list[i].index = i+1
864
+                  list[i].befor_bp = list[i].BeforDiastolicBloodPressure +"/" + list[i].BeforSystolicBloodPressure
865
+                  list[i].after_bp = list[i].AfterDiastolicBloodPressure+"/" + list[i].AfterSystolicBloodPressure
866
+                }
867
+             
868
+              }
869
+              var arr =["序号","姓名","透析号","透前BP","透后BP","血磷","血红蛋白","血钙","校正钙","甲旁素","转铁蛋白","铁蛋白","前白蛋白","CRP","β2-MG","透前尿素氮","透后尿素氮","URR","KTV"]
870
+              const tHeader = arr
871
+              var newList = ["index","name","dialysis_no","befor_bp","after_bp","XueLin","XueHongDanBai","XueGai","JiaoZhengGai","JiaPanSu","YiTieDanBai","TieDanBai","QianBaiDanBai","Crp","Mg","","","URR","KTV"]
872
+              
873
+
874
+              const data = this.formatJson(newList, list);
875
+              console.log("DATA======",data)
876
+              excel.export_json_to_excel({
877
+                header: tHeader,
878
+                data,
879
+                filename: "患者质控达标统计",
880
+              });
881
+              this.downloadLoading = false;
882
+            });
883
+            
857
           }
884
           }
858
        })
885
        })
859
      
886
      

+ 1 - 1
src/xt_pages/user/Informed/components/Medicalhistory.vue View File

63
             地址<span class="unile2"></span> 省(市)<span class="unile2"></span>路<span class="unile2"></span>号
63
             地址<span class="unile2"></span> 省(市)<span class="unile2"></span>路<span class="unile2"></span>号
64
           </div> -->
64
           </div> -->
65
           <div style="padding: 0 5px 10px 5px">
65
           <div style="padding: 0 5px 10px 5px">
66
-            诊断:<span class="unile2">{{ patient.diagnose }}</span>
66
+            诊断:<span style="border-bottom: 1px solid black;">{{ patient.diagnose }}</span>
67
           </div>
67
           </div>
68
           <!-- <div style="padding: 10px 5px">
68
           <!-- <div style="padding: 10px 5px">
69
             合并症或并发症 <span class="unile"></span>
69
             合并症或并发症 <span class="unile"></span>

+ 63 - 63
src/xt_pages/user/components/PatientSidebar.vue View File

204
             },
204
             },
205
           ]
205
           ]
206
         },
206
         },
207
-        // {
208
-        //   name: '5',
209
-        //   label: '评估工具',
210
-        //   children: [
211
-        //     {
212
-        //       name: '5-1',
213
-        //       label: '跌倒评估'
214
-        //     },
215
-        //     {
216
-        //       name: '5-2',
217
-        //       label: '小儿跌倒风险评估'
218
-        //     },
219
-        //     {
220
-        //       name: '5-3',
221
-        //       label: '压疮风险评估'
222
-        //     },
223
-        //     {
224
-        //       name: '5-4',
225
-        //       label: 'OH压疮评估'
226
-        //     },
227
-        //     {
228
-        //       name: '5-5',
229
-        //       label: '日常生活能力评估'
230
-        //     },
231
-        //     {
232
-        //       name: '5-6',
233
-        //       label: '导管脱落风险评估'
234
-        //     },
235
-        //     {
236
-        //       name: '5-7',
237
-        //       label: 'RASS及疼痛评估'
238
-        //     },
239
-        //     {
240
-        //       name: '5-8',
241
-        //       label: '营养状况评估'
242
-        //     },
243
-        //     {
244
-        //       name: '5-9',
245
-        //       label: '约束告知单'
246
-        //     },
247
-        //     {
248
-        //       name: '5-10',
249
-        //       label: '心理评估'
250
-        //     },
251
-        //     {
252
-        //       name: '5-11',
253
-        //       label: '瘙痒评估'
254
-        //     },
255
-        //     {
256
-        //       name: '5-12',
257
-        //       label: '血液透析患者评估'
258
-        //     },
259
-        //     {
260
-        //       name: '5-13',
261
-        //       label: 'Glasgow昏迷评分量表'
262
-        //     },
263
-        //     {
264
-        //       name: '5-14',
265
-        //       label: '肌力评估表'
266
-        //     },
267
-        //    ]
268
-        //  },
207
+         {
208
+          name: '5',
209
+          label: '评估工具',
210
+          children: [
211
+            {
212
+              name: '5-1',
213
+              label: '跌倒评估'
214
+            },
215
+            {
216
+              name: '5-2',
217
+              label: '小儿跌倒风险评估'
218
+            },
219
+            {
220
+              name: '5-3',
221
+              label: '压疮风险评估'
222
+            },
223
+            {
224
+              name: '5-4',
225
+              label: 'OH压疮评估'
226
+            },
227
+            {
228
+              name: '5-5',
229
+              label: '日常生活能力评估'
230
+            },
231
+            {
232
+              name: '5-6',
233
+              label: '导管脱落风险评估'
234
+            },
235
+            {
236
+              name: '5-7',
237
+              label: 'RASS及疼痛评估'
238
+            },
239
+            {
240
+              name: '5-8',
241
+              label: '营养状况评估'
242
+            },
243
+            // {
244
+            //   name: '5-9',
245
+            //   label: '约束告知单'
246
+            // },
247
+            {
248
+              name: '5-10',
249
+              label: '心理评估'
250
+            },
251
+            {
252
+              name: '5-11',
253
+              label: '瘙痒评估'
254
+            },
255
+            {
256
+              name: '5-12',
257
+              label: '血液透析患者评估'
258
+            },
259
+            {
260
+              name: '5-13',
261
+              label: 'Glasgow昏迷评分量表'
262
+            },
263
+            {
264
+              name: '5-14',
265
+              label: '肌力评估表'
266
+            },
267
+           ]
268
+         },
269
         {
269
         {
270
           name: '6',
270
           name: '6',
271
           label: '文书管理',
271
           label: '文书管理',
407
         if (response.data.state == 1) {
407
         if (response.data.state == 1) {
408
           if(this.org_id ==10191 || this.org_id == 0){
408
           if(this.org_id ==10191 || this.org_id == 0){
409
              var patients = response.data.data.patients
409
              var patients = response.data.data.patients
410
-             console.log("patients",patients)
410
+            //  console.log("patients",patients)
411
              for(let i=0;i<patients.length;i++){
411
              for(let i=0;i<patients.length;i++){
412
                if(patients[i].lapseto ==1){
412
                if(patients[i].lapseto ==1){
413
                 this.patientsList.push(patients[i])
413
                 this.patientsList.push(patients[i])

+ 27 - 16
src/xt_pages/user/evaluationtool/Cathetershedding.vue View File

87
                           <el-select v-model="Dutynurse" placeholder="请选择" style="width:150px;">
87
                           <el-select v-model="Dutynurse" placeholder="请选择" style="width:150px;">
88
                               <el-option
88
                               <el-option
89
                               v-for="item in Dutynursearr"
89
                               v-for="item in Dutynursearr"
90
-                              :key="item.id"
91
-                              :label="item.label"
92
-                              :value="item.id"
90
+                              :key="item.admin_user_id"
91
+                              :label="item.user_name"
92
+                              :value="item.admin_user_id"
93
                               >
93
                               >
94
                               </el-option>
94
                               </el-option>
95
                           </el-select>
95
                           </el-select>
126
                             评估人签字:
126
                             评估人签字:
127
                             <el-select v-model="appraiser" placeholder="请选择" style="width: 120px;">
127
                             <el-select v-model="appraiser" placeholder="请选择" style="width: 120px;">
128
                                 <el-option
128
                                 <el-option
129
-                                v-for="item in optionsarr"
130
-                                :key="item.id"
131
-                                :label="item.label"
132
-                                :value="item.id">
129
+                                v-for="item in Dutynursearr"
130
+                                :key="item.admin_user_id"
131
+                                :label="item.user_name"
132
+                                :value="item.admin_user_id"
133
+                                >
133
                                 </el-option>
134
                                 </el-option>
134
                             </el-select>
135
                             </el-select>
135
                         </p>
136
                         </p>
149
                             护士长签字:
150
                             护士长签字:
150
                             <el-select v-model="hushi" placeholder="请选择" style="width: 120px;">
151
                             <el-select v-model="hushi" placeholder="请选择" style="width: 120px;">
151
                                 <el-option
152
                                 <el-option
152
-                                v-for="item in hushiarr"
153
-                                :key="item.id"
154
-                                :label="item.label"
155
-                                :value="item.id">
153
+                                v-for="item in Dutynursearr"
154
+                                :key="item.admin_user_id"
155
+                                :label="item.user_name"
156
+                                :value="item.admin_user_id">
156
                                 </el-option>
157
                                 </el-option>
157
                             </el-select>
158
                             </el-select>
158
                         </p>
159
                         </p>
183
 <script>
184
 <script>
184
 import { uParseTime } from '@/utils/tools'
185
 import { uParseTime } from '@/utils/tools'
185
 import PatientSidebar from '../components/PatientSidebar.vue'
186
 import PatientSidebar from '../components/PatientSidebar.vue'
186
-import {savePatientHpressuresore} from '@/api/fallassement'
187
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
187
 export default {
188
 export default {
188
   components:{
189
   components:{
189
     PatientSidebar
190
     PatientSidebar
205
       date:this.getTime(new Date()),
206
       date:this.getTime(new Date()),
206
       Dutynurse:'',//责任护士
207
       Dutynurse:'',//责任护士
207
       // Dutynursearr:[],//责任护士数组
208
       // Dutynursearr:[],//责任护士数组
208
-      Dutynursearr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
209
+      Dutynursearr:[],
209
       appraiser:'',
210
       appraiser:'',
210
       // optionsarr:[],
211
       // optionsarr:[],
211
-      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
212
       jiashu_date:this.getTime(new Date()),//家属时间
212
       jiashu_date:this.getTime(new Date()),//家属时间
213
       zhuanggui:'',//转归
213
       zhuanggui:'',//转归
214
       hushi:'',//护理
214
       hushi:'',//护理
215
-      hushiarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],//护理
216
       hushi_date:this.getTime(new Date()),//护理时间
215
       hushi_date:this.getTime(new Date()),//护理时间
217
       cuoshi_show:[],//护理措施选中数组
216
       cuoshi_show:[],//护理措施选中数组
218
       Patient_info:{name:'',dialysis_no:''},
217
       Patient_info:{name:'',dialysis_no:''},
243
   created(){
242
   created(){
244
     const id = this.$route.params && this.$route.params.id
243
     const id = this.$route.params && this.$route.params.id
245
     this.patientID = parseInt(id)
244
     this.patientID = parseInt(id)
245
+    this.getAllNurseList()
246
   },
246
   },
247
   methods:{
247
   methods:{
248
     // 选中
248
     // 选中
291
       }
291
       }
292
       savePatientHpressuresore(params).then(response =>{
292
       savePatientHpressuresore(params).then(response =>{
293
         if(response.data.state == 1){
293
         if(response.data.state == 1){
294
-          console.log('111111111',response.data.data);
294
+          
295
           const cath = response.data.data.pedFallssessment
295
           const cath = response.data.data.pedFallssessment
296
+          console.log('111111111',JSON.parse(cath.text));
296
           this.$message({message:'保存成功',type:'success'})
297
           this.$message({message:'保存成功',type:'success'})
297
           // if(cath.text !=''){
298
           // if(cath.text !=''){
298
           //   const text = JSON.parse(cath.text)
299
           //   const text = JSON.parse(cath.text)
345
         dialysis_no:event.dialysis_no
346
         dialysis_no:event.dialysis_no
346
       }
347
       }
347
     },
348
     },
349
+    // 评估人数据源
350
+    getAllNurseList(){
351
+      getAllNurseList().then(response=>{
352
+        if(response.data.state ==1){
353
+          var nurseList  = response.data.data.nurseList
354
+
355
+          this.Dutynursearr =nurseList
356
+        }
357
+      })
358
+    },
348
   },
359
   },
349
   computed:{
360
   computed:{
350
     duct_Totalpoints(){
361
     duct_Totalpoints(){

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

358
                                 <td>
358
                                 <td>
359
                                   <div class="xiaojige">
359
                                   <div class="xiaojige">
360
                                     <label>
360
                                     <label>
361
-                                      <input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item.contentOne }}
361
+                                      <input type="checkbox" name="ball" value="volleyball" v-model="item.is_content_check_one"/>&nbsp;{{ item.contentOne }}
362
                                     </label><br>
362
                                     </label><br>
363
 
363
 
364
                                   </div>
364
                                   </div>
581
       handleCheckedCitiesChange(e){
581
       handleCheckedCitiesChange(e){
582
         console.log("eeeeeeeee",e)
582
         console.log("eeeeeeeee",e)
583
         var ball = e.target.value
583
         var ball = e.target.value
584
-        console.log("ball------------",ball)
584
+      
585
         var jiequ =(ball.split('(')[1].split('分')[0]) * 1
585
         var jiequ =(ball.split('(')[1].split('分')[0]) * 1
586
-        console.log("jiequ-----------",jiequ)
586
+      
587
         if(e.target.checked==true){
587
         if(e.target.checked==true){
588
           this.tumble_Totalpoints=this.tumble_Totalpoints + jiequ
588
           this.tumble_Totalpoints=this.tumble_Totalpoints + jiequ
589
           return this.tumble_Totalpoints
589
           return this.tumble_Totalpoints
606
         this.centerDialogVisibleOne = true
606
         this.centerDialogVisibleOne = true
607
       },
607
       },
608
       saveCenterDialogVisibleOne(){
608
       saveCenterDialogVisibleOne(){
609
-        var obj = {is_content_check_one:false,content:"",is_status:2}
610
-        obj.content = this.contentOne
609
+        var obj = {is_content_check_one:false,contentOne:"",is_status:2}
610
+        obj.contentOne = this.contentOne
611
         this.listOne.push(obj)
611
         this.listOne.push(obj)
612
         this.centerDialogVisibleOne= false
612
         this.centerDialogVisibleOne= false
613
       },
613
       },
929
             }
929
             }
930
          }
930
          }
931
          var params = {
931
          var params = {
932
-          is_age:this.nianlin,//年龄
933
-          is_jiwang:this.jiwang,//既往史
934
-          is_yishizt:this.yishizt,//意识状态
935
-          is_ganguan:this.ganguan,//感官
936
-          is_shentizk:this.shentizk,// 身体状况
937
-          is_syyaowu:this.syyaowu,//使用药物
938
-          is_paixie:this.paixie,//排泄
939
-          is_zilin:this.zilinl, //自理能力
940
-          is_xiaoguo:this.xiaoguo,//预防效果
941
-          is_touxidiedao:this.touxidiedao,//透析跌倒
942
-          list:this.list,
943
-          listOne:this.listOne,
932
+          is_age:JSON.stringify(this.nianlin),//年龄
933
+          is_jiwang:JSON.stringify(this.jiwang),//既往史
934
+          is_yishizt:JSON.stringify(this.yishizt),//意识状态
935
+          is_ganguan:JSON.stringify(this.ganguan),//感官
936
+          is_shentizk:JSON.stringify(this.shentizk),// 身体状况
937
+          is_syyaowu:JSON.stringify(this.syyaowu),//使用药物
938
+          is_paixie:JSON.stringify(this.paixie),//排泄
939
+          is_zilin:JSON.stringify(this.zilinl), //自理能力
940
+          is_xiaoguo:JSON.stringify(this.xiaoguo),//预防效果
941
+          is_touxidiedao:JSON.stringify(this.touxidiedao),//透析跌倒
942
+          list:JSON.stringify(this.list),
943
+          listOne:JSON.stringify(this.listOne),
944
           record_date:record_date,
944
           record_date:record_date,
945
           ping_date:ping_date,
945
           ping_date:ping_date,
946
           admin_user_id:this.admin_user_id,
946
           admin_user_id:this.admin_user_id,
969
 
969
 
970
          }
970
          }
971
          console.log("params",params)
971
          console.log("params",params)
972
-
972
+      
973
         saveFllassessmentList(params).then(response=>{
973
         saveFllassessmentList(params).then(response=>{
974
            if(response.data.state ==1){
974
            if(response.data.state ==1){
975
              var patientFallassessment = response.data.data.patientFallassessment
975
              var patientFallassessment = response.data.data.patientFallassessment

+ 93 - 50
src/xt_pages/user/evaluationtool/Glasgow.vue View File

15
               </div>
15
               </div>
16
               <div style="flex:1" v-if="Glas_baoxiao">
16
               <div style="flex:1" v-if="Glas_baoxiao">
17
                 <el-button type="primary" @click="Glas_save" v-if="qufen == false">保存</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
+                <el-button type="primary" @click="Glas_save2" v-if="qufen == true && dele_id != ''">保存</el-button>
19
                 <el-button  @click="Glas_quxiao" >取消</el-button>
19
                 <el-button  @click="Glas_quxiao" >取消</el-button>
20
               </div>
20
               </div>
21
 
21
 
97
                 <el-select v-model="Glas_pinggu" placeholder="请选择" style="width:120px;">
97
                 <el-select v-model="Glas_pinggu" placeholder="请选择" style="width:120px;">
98
                     <el-option
98
                     <el-option
99
                     v-for="item in pinggr"
99
                     v-for="item in pinggr"
100
-                    :key="item.id"
101
-                    :label="item.label"
102
-                    :value="item.id"
100
+                    :key="item.admin_user_id"
101
+                    :label="item.user_name"
102
+                    :value="item.admin_user_id"
103
                     >
103
                     >
104
                     </el-option>
104
                     </el-option>
105
                 </el-select>
105
                 </el-select>
106
               </div>
106
               </div>
107
             </div>
107
             </div>
108
+            <div id="ctrl-xgtlpic-mask2" class="readonly" data-text="图片操作的遮罩层" v-show="append2 == false"></div>
108
             <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
109
             <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
109
             <hr style=" background-color: #DCDFE6;margin-top: 20px; height: 1px;border: none;"/>
110
             <hr style=" background-color: #DCDFE6;margin-top: 20px; height: 1px;border: none;"/>
110
             <div class="shuoming">
111
             <div class="shuoming">
270
       yundong:[{value:6,label:'能按指令运动肢体(6分)',is_check:false,check:0},{value:5,label:'对刺痛能定位(5分)',is_check:false,check:0},{value:4,label:'对刺痛能躲避(4分)',is_check:false,check:0},
271
       yundong:[{value:6,label:'能按指令运动肢体(6分)',is_check:false,check:0},{value:5,label:'对刺痛能定位(5分)',is_check:false,check:0},{value:4,label:'对刺痛能躲避(4分)',is_check:false,check:0},
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}],
272
       {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}],
272
 
273
 
273
-      pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
274
+      pinggr:[],
274
       history_Glasgow:[],
275
       history_Glasgow:[],
275
 
276
 
276
       append:false,//显示遮罩层
277
       append:false,//显示遮罩层
278
+      append2:false,
279
+      add_open:1,//新增按钮控制条件
277
       Glasadd_show:true,//显示新增
280
       Glasadd_show:true,//显示新增
278
       Glas_gzdayin:false,//显示编辑删除
281
       Glas_gzdayin:false,//显示编辑删除
279
       Glas_baoxiao:false,//显示保存
282
       Glas_baoxiao:false,//显示保存
282
       Glas_pinggu:null,
285
       Glas_pinggu:null,
283
       open_print:false,
286
       open_print:false,
284
       dele_id:'',
287
       dele_id:'',
288
+      dele_id2:'',
285
       dele_dialogVisible:false,
289
       dele_dialogVisible:false,
286
       dayintime:this.getTime2(new Date()),
290
       dayintime:this.getTime2(new Date()),
287
       glasgow_zong:0,
291
       glasgow_zong:0,
292
     const id = this.$route.params && this.$route.params.id
296
     const id = this.$route.params && this.$route.params.id
293
     this.patientID = parseInt(id)
297
     this.patientID = parseInt(id)
294
     this.getlist()
298
     this.getlist()
299
+    this.getAllNurseList()
295
   },
300
   },
296
   methods:{
301
   methods:{
297
     //睁眼
302
     //睁眼
354
     },
359
     },
355
     // 新增
360
     // 新增
356
     Glas_add(){
361
     Glas_add(){
357
-      this.cancel_num=0
358
-      this.append=true
359
-      this.Glas_baoxiao=true
360
-      this.Glasadd_show =false
361
-      this.Glas_gzdayin = false
362
-      this.qufen = false
362
+      if(this.add_open ==1){
363
+        this.cancel_num=0
364
+        this.append=true
365
+        this.append2=true
366
+        this.Glas_baoxiao=true
367
+        this.Glasadd_show =false
368
+        this.Glas_gzdayin = false
369
+        this.qufen = false
370
+      }else{
371
+        this.append = false
372
+        this.append2 = false
373
+      }
374
+      
363
     },
375
     },
364
     // 新增保存
376
     // 新增保存
365
     Glas_save(){
377
     Glas_save(){
391
             if(response.data.state == 1){
403
             if(response.data.state == 1){
392
               const Glasgow = response.data.data.pedFallssessment
404
               const Glasgow = response.data.data.pedFallssessment
393
               console.log('response.data.state',response.data.data.pedFallssessment);
405
               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
-              }
406
+              this.getlist()
407
+              // if(Glasgow.text !=''){
408
+              //   var text = JSON.parse(Glasgow.text)
409
+              //   this.dele_id2 = Glasgow.id
410
+              //   const arr ={
411
+              //     id:Glasgow.id,
412
+              //     date:text.date,
413
+              //     mark:text.total,
414
+              //     evaluate:this.getpinggr(text.Glas_pinggu),
415
+              //     list:text
416
+              //   }
417
+              //   this.history_Glasgow.push(arr)
418
+              // }
405
             }
419
             }
406
         })
420
         })
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
 
421
 
424
-        //     }
425
-        //   }
426
-        //   historylen[x].evaluate = pingguname
427
-        //       // return historylen[x].evaluate
428
-        // }
429
         return this.history_Glasgow
422
         return this.history_Glasgow
430
       }
423
       }
431
     },
424
     },
482
       this.Glasadd_show=false
475
       this.Glasadd_show=false
483
       this.cancel_num =1
476
       this.cancel_num =1
484
       this.qufen = true
477
       this.qufen = true
478
+      this.append2 = true
485
     },
479
     },
486
     // 选中数据
480
     // 选中数据
487
     glasgow_click(row,column, event){
481
     glasgow_click(row,column, event){
488
-      this.dele_id=row.id
482
+      if(row.id == 0){
483
+        this.dele_id =this.dele_id2
484
+      }else{
485
+        this.dele_id=row.id
486
+      }
487
+      
489
       // if(this.cancel_num == 1){
488
       // if(this.cancel_num == 1){
490
       //   this.Glasadd_show = true
489
       //   this.Glasadd_show = true
491
       //   this.Glas_gzdayin = true
490
       //   this.Glas_gzdayin = true
497
         this.Glas_gzdayin = true
496
         this.Glas_gzdayin = true
498
         this.Glas_baoxiao = false
497
         this.Glas_baoxiao = false
499
         this.qufen = false
498
         this.qufen = false
500
-        // this.append2 = false
499
+        this.append2 = false
501
       }
500
       }
502
       getPedPatientFallAssessmentById(this.dele_id).then(response =>{
501
       getPedPatientFallAssessmentById(this.dele_id).then(response =>{
503
         if(response.data.state ==1){
502
         if(response.data.state ==1){
504
           const glasgow = response.data.data.fallassessment
503
           const glasgow = response.data.data.fallassessment
505
-          // console.log('response.data.',response.data.data.fallassessment);
504
+        
505
+          console.log('response.data.',response.data.data.fallassessment);
506
           if(glasgow.text !=''){
506
           if(glasgow.text !=''){
507
             const text =JSON.parse(glasgow.text)
507
             const text =JSON.parse(glasgow.text)
508
             for(let i in this.zhengyan){
508
             for(let i in this.zhengyan){
566
               this.history_Glasgow.splice(i,1)
566
               this.history_Glasgow.splice(i,1)
567
             }
567
             }
568
           }
568
           }
569
+          for(let i=0;i<this.zhengyan.length;i++){
570
+        
571
+            this.zhengyan[i].check =0
572
+            this.zhengyan[i].is_check = false
573
+            this.zhengyan_num = 0
574
+          }
575
+          for(let i=0;i<this.yanyu.length;i++){
576
+            this.yanyu[i].check =0
577
+            this.yanyu[i].is_check = false
578
+            this.yuyan_num = 0
579
+          }
580
+          for(let i=0;i<this.yundong.length;i++){
581
+            this.yundong[i].check =0
582
+            this.yundong[i].is_check = false
583
+            this.yundong_num = 0
584
+          }
585
+          this.Glas_pinggu = ''
569
         }
586
         }
570
       })
587
       })
571
       this.dele_dialogVisible=false
588
       this.dele_dialogVisible=false
586
         this.Glasadd_show=true
603
         this.Glasadd_show=true
587
         this.Glas_gzdayin=false
604
         this.Glas_gzdayin=false
588
         this.Glas_baoxiao=false
605
         this.Glas_baoxiao=false
589
-        
606
+        this.append2=false
590
       //  return this.append
607
       //  return this.append
591
       }else{
608
       }else{
592
         this.Glasadd_show=true
609
         this.Glasadd_show=true
593
         this.Glas_gzdayin=true
610
         this.Glas_gzdayin=true
594
         this.Glas_baoxiao=false
611
         this.Glas_baoxiao=false
595
         this.append=true
612
         this.append=true
613
+        this.append2=false
596
       }
614
       }
597
       for(let i in this.zhengyan){
615
       for(let i in this.zhengyan){
598
         this.zhengyan[i].is_check = false
616
         this.zhengyan[i].is_check = false
647
     // 评估护士
665
     // 评估护士
648
     getpinggr(id){
666
     getpinggr(id){
649
       for(let i in this.pinggr){
667
       for(let i in this.pinggr){
650
-        if(id == this.pinggr[i].id){
651
-          return this.pinggr[i].label
668
+        if(id == this.pinggr[i].admin_user_id){
669
+          return this.pinggr[i].user_name
652
         }
670
         }
653
       }
671
       }
654
     },
672
     },
662
         }
680
         }
663
       getPatientBedlist(params).then(response=>{
681
       getPatientBedlist(params).then(response=>{
664
         if(response.data.state ==1){
682
         if(response.data.state ==1){
683
+          if(this.history_Glasgow.length >0){
684
+            this.history_Glasgow.length =0
685
+          }
665
           var list = response.data.data.list
686
           var list = response.data.data.list
666
           list.forEach((item) => {
687
           list.forEach((item) => {
667
             if(item.text !=''){
688
             if(item.text !=''){
681
           console.log('list',list);
702
           console.log('list',list);
682
         }
703
         }
683
       })
704
       })
684
-      return this.history_OH
705
+      return this.history_Glasgow
685
     },
706
     },
686
     // 患者信息
707
     // 患者信息
687
     tranpatient(event){
708
     tranpatient(event){
691
         dialysis_no:event.dialysis_no
712
         dialysis_no:event.dialysis_no
692
       }
713
       }
693
     },
714
     },
715
+     // 评估人数据源
716
+    getAllNurseList(){
717
+        getAllNurseList().then(response=>{
718
+          if(response.data.state ==1){
719
+            var nurseList  = response.data.data.nurseList
720
+
721
+            this.pinggr =nurseList
722
+          }
723
+        })
724
+    },
694
   },
725
   },
695
   computed:{
726
   computed:{
696
     Glasgow_Totalpoints:{
727
     Glasgow_Totalpoints:{
764
 #ctrl-xgtlpic-mask.readonly {
795
 #ctrl-xgtlpic-mask.readonly {
765
   z-index: 2000;
796
   z-index: 2000;
766
 }
797
 }
798
+#ctrl-xgtlpic-mask2.readonly {
799
+  z-index: 2000;
800
+}
767
 #ctrl-xgtlpic-mask {
801
 #ctrl-xgtlpic-mask {
768
     width: 85%;
802
     width: 85%;
769
     height: 100%;
803
     height: 100%;
773
     opacity: 0;
807
     opacity: 0;
774
     z-index: -1;
808
     z-index: -1;
775
 }
809
 }
810
+#ctrl-xgtlpic-mask2 {
811
+    width: 50%;
812
+    height: 100%;
813
+    position: absolute;
814
+    left: 196px;
815
+    top: 131px;
816
+    opacity: 0;
817
+    z-index: -1;
818
+}
776
 .tables {
819
 .tables {
777
 
820
 
778
   thead th{
821
   thead th{

+ 63 - 20
src/xt_pages/user/evaluationtool/Muscleforce.vue View File

73
                   <el-select v-model="muscle_pinggu" placeholder="请选择" style="width:120px;">
73
                   <el-select v-model="muscle_pinggu" placeholder="请选择" style="width:120px;">
74
                       <el-option
74
                       <el-option
75
                       v-for="item in pinggr"
75
                       v-for="item in pinggr"
76
-                      :key="item.id"
77
-                      :label="item.label"
78
-                      :value="item.id"
76
+                      :key="item.admin_user_id"
77
+                      :label="item.user_name"
78
+                      :value="item.admin_user_id"
79
                       >
79
                       >
80
                       </el-option>
80
                       </el-option>
81
                   </el-select>
81
                   </el-select>
82
               </div>
82
               </div>
83
             </div>
83
             </div>
84
+            <div id="ctrl-xgtlpic-mask2" class="readonly" data-text="图片操作的遮罩层" v-show="append2 == false"></div>
84
             <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
85
             <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
85
           </div>
86
           </div>
86
           <!-- 虚线 -->
87
           <!-- 虚线 -->
218
         {title:'5级',label:' 正常肌力',value:5,is_check:false,check:0},
219
         {title:'5级',label:' 正常肌力',value:5,is_check:false,check:0},
219
       ],
220
       ],
220
       history_muscle:[],
221
       history_muscle:[],
221
-      pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
222
-      append:false,
222
+      pinggr:[],
223
+      append:false,//遮罩层
224
+      append2:false,
223
       add_open:1,
225
       add_open:1,
224
       muscle_show:true,
226
       muscle_show:true,
225
       baocun_quxiao:false,
227
       baocun_quxiao:false,
227
       cancel_num:0,//是否点击右侧
229
       cancel_num:0,//是否点击右侧
228
       open_print:false,
230
       open_print:false,
229
       dele_id:'',
231
       dele_id:'',
232
+      dele_id2:'',
230
       dele_dialogVisible:false,
233
       dele_dialogVisible:false,
231
       content:"",
234
       content:"",
232
       text:"",
235
       text:"",
242
     const id = this.$route.params && this.$route.params.id
245
     const id = this.$route.params && this.$route.params.id
243
     this.patientID = parseInt(id)
246
     this.patientID = parseInt(id)
244
     this.getlist()
247
     this.getlist()
248
+    this.getAllNurseList()
245
   },
249
   },
246
   methods:{
250
   methods:{
247
     // 选择
251
     // 选择
269
         this.append=true
273
         this.append=true
270
         this.baocun_quxiao=true
274
         this.baocun_quxiao=true
271
         this.muscle_show =false
275
         this.muscle_show =false
276
+        this.muscle_gsdayin = false
272
         this.qufen =false
277
         this.qufen =false
278
+        this.append2 = true
273
       }else{
279
       }else{
274
         this.append = false
280
         this.append = false
281
+        this.append2 = false
275
       }
282
       }
276
     },
283
     },
277
     // 保存
284
     // 保存
302
           if(response.data.state == 1){
309
           if(response.data.state == 1){
303
             console.log('response',response.data.data);
310
             console.log('response',response.data.data);
304
             const muscle = response.data.data.pedFallssessment
311
             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)
314
-            }
312
+            // if(muscle.text !=''){
313
+            //   const text = JSON.parse(muscle.text)
314
+            //   this.dele_id2 = muscle.id
315
+            //   const arr={
316
+            //     id:muscle.id,
317
+            //     date:text.date,
318
+            //     mark:text.total,
319
+            //     evaluate:this.getpinggr(text.muscle_pinggu)
320
+            //   }
321
+            //   this.history_muscle.push(arr)
322
+            // }
323
+            this.getlist()
315
             this.$message({message:'保存成功',type:'success'})
324
             this.$message({message:'保存成功',type:'success'})
316
           }
325
           }
317
         })
326
         })
361
     },
370
     },
362
     // 选中右侧数据
371
     // 选中右侧数据
363
     Muscle_click(row,column, event){
372
     Muscle_click(row,column, event){
364
-      this.dele_id=row.id
373
+      if(row.id ==0){
374
+        this.dele_id=this.dele_id2 
375
+      }else{
376
+        this.dele_id=row.id
377
+      }
378
+      console.log('row.id',this.dele_id);
365
       this.muscle_show=true
379
       this.muscle_show=true
366
       this.baocun_quxiao=false
380
       this.baocun_quxiao=false
367
       this.muscle_gsdayin=true
381
       this.muscle_gsdayin=true
368
       this.qufen = true
382
       this.qufen = true
369
-      getPedPatientFallAssessmentById(row.id).then(response =>{
383
+      this.append2 = false
384
+      getPedPatientFallAssessmentById(this.dele_id).then(response =>{
370
         if(response.data.state == 1){
385
         if(response.data.state == 1){
371
           console.log('111111111',response.data.data.fallassessment); 
386
           console.log('111111111',response.data.data.fallassessment); 
372
           const muscle = response.data.data.fallassessment
387
           const muscle = response.data.data.fallassessment
440
         this.muscle_show=true
455
         this.muscle_show=true
441
         this.muscle_gsdayin=false
456
         this.muscle_gsdayin=false
442
         this.append=false
457
         this.append=false
458
+        this.append2=false
443
       }else{
459
       }else{
444
         this.muscle_gsdayin=true
460
         this.muscle_gsdayin=true
445
         this.muscle_show=true
461
         this.muscle_show=true
446
         this.baocun_quxiao=false
462
         this.baocun_quxiao=false
447
         this.append=true
463
         this.append=true
464
+        this.append2=false
448
       }
465
       }
449
 
466
 
450
     },
467
     },
455
       this.muscle_show=false
472
       this.muscle_show=false
456
       this.qufen = true
473
       this.qufen = true
457
       this.cancel_num=1
474
       this.cancel_num=1
475
+      this.append2 = true
458
     },
476
     },
459
     // 打印
477
     // 打印
460
     print_pingfen(){
478
     print_pingfen(){
491
     // 评估护士
509
     // 评估护士
492
     getpinggr(id){
510
     getpinggr(id){
493
       for(let i in this.pinggr){
511
       for(let i in this.pinggr){
494
-        if(id == this.pinggr[i].id){
495
-          return this.pinggr[i].label
512
+        if(id == this.pinggr[i].admin_user_id){
513
+          return this.pinggr[i].user_name
496
         }
514
         }
497
       }
515
       }
498
     },
516
     },
515
       }
533
       }
516
       getPatientBedlist(params).then(response =>{
534
       getPatientBedlist(params).then(response =>{
517
         if(response.data.state ==1){
535
         if(response.data.state ==1){
536
+          if(this.history_muscle.length >0){
537
+            this.history_muscle.length=0
538
+          }
518
           const list = response.data.data.list
539
           const list = response.data.data.list
519
           console.log('response.data.data.list12',list);
540
           console.log('response.data.data.list12',list);
520
           list.forEach(item => {
541
           list.forEach(item => {
534
           });
555
           });
535
         }
556
         }
536
       })
557
       })
537
-    }
558
+    },
559
+     // 评估人数据源
560
+    getAllNurseList(){
561
+        getAllNurseList().then(response=>{
562
+          if(response.data.state ==1){
563
+            var nurseList  = response.data.data.nurseList
564
+
565
+            this.pinggr =nurseList
566
+          }
567
+        })
568
+    },
538
   }
569
   }
539
 }
570
 }
540
 </script>
571
 </script>
586
 #ctrl-xgtlpic-mask.readonly {
617
 #ctrl-xgtlpic-mask.readonly {
587
   z-index: 2000;
618
   z-index: 2000;
588
 }
619
 }
620
+#ctrl-xgtlpic-mask2.readonly {
621
+  z-index: 2000;
622
+}
589
 #ctrl-xgtlpic-mask {
623
 #ctrl-xgtlpic-mask {
590
     width: 85%;
624
     width: 85%;
591
     height: 100%;
625
     height: 100%;
595
     opacity: 0;
629
     opacity: 0;
596
     z-index: -1;
630
     z-index: -1;
597
 }
631
 }
632
+#ctrl-xgtlpic-mask2 {
633
+    width: 50%;
634
+    height: 100%;
635
+    position: absolute;
636
+    left: 196px;
637
+    top: 131px;
638
+    opacity: 0;
639
+    z-index: -1;
640
+}
598
 .tables {
641
 .tables {
599
 
642
 
600
   thead th{
643
   thead th{

+ 105 - 109
src/xt_pages/user/evaluationtool/OHpressuresore.vue View File

17
 
17
 
18
               <div style="flex:1" v-if="baocun_open==1">
18
               <div style="flex:1" v-if="baocun_open==1">
19
                 <el-button type="primary" @click="save_OH" v-if="this.qufen ==false">保存</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
+                <el-button type="primary" @click="updateBedPatientList" v-if="this.qufen == true && this.dele_id !=''">保存</el-button>
21
                 <el-button  @click="cancel_OH" >取消</el-button>
21
                 <el-button  @click="cancel_OH" >取消</el-button>
22
               </div>
22
               </div>
23
 
23
 
107
                   <el-select v-model="oh_appraiser" placeholder="请选择"  style="width:120px;">
107
                   <el-select v-model="oh_appraiser" placeholder="请选择"  style="width:120px;">
108
                       <el-option
108
                       <el-option
109
                       v-for="item in oh_pinggr"
109
                       v-for="item in oh_pinggr"
110
-                      :key="item.id"
111
-                      :label="item.label"
112
-                      :value="item.id"
110
+                      :key="item.admin_user_id"
111
+                      :label="item.user_name"
112
+                      :value="item.admin_user_id"
113
                      >
113
                      >
114
                       </el-option>
114
                       </el-option>
115
                   </el-select>
115
                   </el-select>
303
       bingli:[{value:0,label:'无(0分)',check:0,is_check:false},{value:1.5,label:'轻度/中度(1.5分)',check:0,is_check:false},{value:3,label:'高度(3分)',check:0,is_check:false}],
303
       bingli:[{value:0,label:'无(0分)',check:0,is_check:false},{value:1.5,label:'轻度/中度(1.5分)',check:0,is_check:false},{value:3,label:'高度(3分)',check:0,is_check:false}],
304
       edema:[{value:0,label:'无(0分)',check:0,is_check:false},{value:3,label:'有(3分)',check:0,is_check:false}],
304
       edema:[{value:0,label:'无(0分)',check:0,is_check:false},{value:3,label:'有(3分)',check:0,is_check:false}],
305
       guanjie:[{value:0,label:'无(0分)',check:0,is_check:false},{value:1,label:'有(1分)',check:0,is_check:false}],
305
       guanjie:[{value:0,label:'无(0分)',check:0,is_check:false},{value:1,label:'有(1分)',check:0,is_check:false}],
306
-      oh_pinggr:[{id:1,label:'小米'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
306
+      oh_pinggr:[],
307
       checkList:[],
307
       checkList:[],
308
       checkList1:[],
308
       checkList1:[],
309
       checkList2:[],
309
       checkList2:[],
319
       cancel_num:0,//取消的条件
319
       cancel_num:0,//取消的条件
320
       open_print:false,
320
       open_print:false,
321
       dele_id:'',//删除的索引
321
       dele_id:'',//删除的索引
322
+      dele_id2:'',
322
       dele_dialogVisible:false,
323
       dele_dialogVisible:false,
323
       oh_huli:'',//护理措施
324
       oh_huli:'',//护理措施
324
       oh_date:this.getTime(new Date()),
325
       oh_date:this.getTime(new Date()),
432
         this.append = false
433
         this.append = false
433
         this.append2 = false
434
         this.append2 = false
434
       }
435
       }
436
+
435
       // for(let i in this.tiwei){
437
       // for(let i in this.tiwei){
436
       //   this.tiwei[i].is_check = false,
438
       //   this.tiwei[i].is_check = false,
437
       //   this.tiwei[i].check = 0
439
       //   this.tiwei[i].check = 0
461
         this.add_show=true
463
         this.add_show=true
462
         this.zsgy_open=1
464
         this.zsgy_open=1
463
         this.cancel_num=1
465
         this.cancel_num=1
466
+        this.append2 =false
464
         const data = {}
467
         const data = {}
465
         var list =[]
468
         var list =[]
466
         data['patient_id'] =  this.patientID
469
         data['patient_id'] =  this.patientID
485
           if(response.data.state ==1){
488
           if(response.data.state ==1){
486
             console.log('response.data.state',response.data);
489
             console.log('response.data.state',response.data);
487
             const item = response.data.data.pedFallssessment
490
             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)
491
+            this.getlist()
492
+            // var oh_text = JSON.parse(item.text)
493
+            // // console.log('oh_data.text',JSON.parse(item.text));
494
+            //   this.dele_id2 = item.id
495
+            //   const arr ={
496
+            //     id:item.id,
497
+            //     date:this.getTime(item.record_date),
498
+            //     mark:oh_text.total,
499
+            //     evaluate:this.getpinggr(oh_text.oh_appraiser),
500
+            //     list:oh_text
501
+            //   }
502
+            //   this.history_OH.push(arr)
498
           }
503
           }
499
         })
504
         })
500
-        return this.history_OH
505
+        // return this.history_OH
501
       }
506
       }
502
     },
507
     },
503
     //编辑
508
     //编辑
510
       this.qufen =true
515
       this.qufen =true
511
     },
516
     },
512
     // 选中数据
517
     // 选中数据
513
-    dele_click(row, column, event){
514
-
515
-      this.dele_id=row.id
518
+    dele_click(row, column, event){    
519
+        this.dele_id = row.id
516
       console.log('row',this.dele_id);
520
       console.log('row',this.dele_id);
517
       if(this.baocun_open == 1){
521
       if(this.baocun_open == 1){
518
         this.add_show = true
522
         this.add_show = true
523
       getPedPatientFallAssessmentById(this.dele_id).then(response=>{
527
       getPedPatientFallAssessmentById(this.dele_id).then(response=>{
524
         if(response.data.state ==1){
528
         if(response.data.state ==1){
525
           const oheditor = response.data.data.fallassessment
529
           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
530
+          if(oheditor.text !=''){
531
+            var editor  =JSON.parse(oheditor.text)
532
+            if(oheditor.id == row.id){
533
+              for(let i in this.tiwei){
534
+                if(editor.tiwei == this.tiwei[i].value){
535
+                  this.tiwei[i].is_check = true
536
+                  this.tiwei[i].check = 1
537
+                  this.tiwei_num = editor.tiwei
538
+                }else{
539
+                  this.tiwei[i].is_check = false
540
+                  this.tiwei[i].check = 0
541
+                  // this.tiwei_num = 0
542
+                }
548
               }
543
               }
544
+              for(let i in this.bingli){
545
+                if(editor.bingli == this.bingli[i].value){
546
+                  this.bingli[i].is_check = true
547
+                  this.bingli[i].check = 1
548
+                  this.bingli_num = editor.bingli
549
+                }else{
550
+                  this.bingli[i].is_check = false
551
+                  this.bingli[i].check = 0
552
+                  // this.bingli_num = 0
553
+                }
549
 
554
 
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
               }
555
               }
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
556
+              for(let i in this.edema){
557
+                if(editor.edema == this.edema[i].value){
558
+                  this.edema[i].is_check = true
559
+                  this.edema[i].check = 1
560
+                  this.edema_num = editor.edema
561
+                }else{
562
+                  this.edema[i].is_check = false
563
+                  this.edema[i].check = 0
564
+                  // this.edema_num = 0
565
+                }
566
+              }
567
+              for(let i in this.guanjie){
568
+                if(editor.guanjie == this.guanjie[i].value){
569
+                  this.guanjie[i].is_check = true
570
+                  this.guanjie[i].check = 1
571
+                  this.gaunjie_num = editor.guanjie
572
+                }else{
573
+                  this.guanjie[i].is_check = false
574
+                  this.guanjie[i].check = 0
575
+                  // this.gaunjie_num = 0
576
+                }
571
               }
577
               }
578
+              this.oh_appraiser = editor.oh_appraiser
579
+              this.oh_huli = editor.oh_huli
580
+              this.oh_date = editor.record_date
581
+              this.Totalpoints = editor.total
572
             }
582
             }
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
583
+            console.log('data',this.Totalpoints,oheditor);
577
           }
584
           }
578
-          console.log('data',this.Totalpoints,oheditor);
579
         }
585
         }
580
       })
586
       })
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);
612
-      //row.id 为 选中当前行的id
613
-      // deletePedPatientFallassment(row.id).then(response=>{
614
-
615
-      // })
616
     },
587
     },
617
     //删除
588
     //删除
618
     dele_OH(){
589
     dele_OH(){
639
               this.history_OH.splice(i,1)
610
               this.history_OH.splice(i,1)
640
             }
611
             }
641
           }
612
           }
613
+          this.oh_appraiser = ''
614
+          this.oh_huli = ''
615
+            for(let i in this.tiwei){
616
+                this.tiwei[i].is_check = false
617
+                this.tiwei[i].check = 0
618
+                this.tiwei_num =0
619
+            }
620
+            for(let i in this.bingli){
621
+                this.bingli[i].is_check = false
622
+                this.bingli[i].check = 0
623
+                this.bingli_num =0
624
+            }
625
+            for(let i in this.edema){
626
+             
627
+                this.edema[i].is_check = false
628
+                this.edema[i].check = 0
629
+                this.edema_num = 0
630
+            }
631
+            for(let i in this.guanjie){
632
+                this.guanjie[i].is_check = false
633
+                this.guanjie[i].check = 0
634
+                this.gaunjie_num =0
635
+            }
642
         }
636
         }
643
       })
637
       })
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
-      // }
649
       this.dele_dialogVisible=false
638
       this.dele_dialogVisible=false
650
       return this.history_OH
639
       return this.history_OH
651
     },
640
     },
667
       if(this.cancel_num==1){
656
       if(this.cancel_num==1){
668
         this.zsgy_open=1
657
         this.zsgy_open=1
669
         this.add_show=true
658
         this.add_show=true
659
+        this.append2=false
670
       }else{
660
       }else{
671
         this.zsgy_open=0
661
         this.zsgy_open=0
672
         this.add_show=true
662
         this.add_show=true
673
         this.append=false
663
         this.append=false
664
+        this.append2=false
674
         this.tiwei_num=''
665
         this.tiwei_num=''
675
         this.bingli_num=null
666
         this.bingli_num=null
676
         this.edema_num=null
667
         this.edema_num=null
705
     // 评估护士
696
     // 评估护士
706
     getpinggr(id){
697
     getpinggr(id){
707
       for(let i in this.oh_pinggr){
698
       for(let i in this.oh_pinggr){
708
-        if(id == this.oh_pinggr[i].id){
709
-          return this.oh_pinggr[i].label
699
+        if(id == this.oh_pinggr[i].admin_user_id){
700
+          return this.oh_pinggr[i].user_name
710
         }
701
         }
711
       }
702
       }
712
     },
703
     },
704
+    // 评估数据
713
     getAllNurseList(){
705
     getAllNurseList(){
714
      getAllNurseList().then(response=>{
706
      getAllNurseList().then(response=>{
715
         if(response.data.state ==1){
707
         if(response.data.state ==1){
716
           var nurseList  = response.data.data.nurseList
708
           var nurseList  = response.data.data.nurseList
717
 
709
 
718
-          this.nurseList =nurseList
710
+          this.oh_pinggr =nurseList
719
         }
711
         }
720
       })
712
       })
721
     },
713
     },
729
         }
721
         }
730
       getPatientBedlist(params).then(response=>{
722
       getPatientBedlist(params).then(response=>{
731
         if(response.data.state ==1){
723
         if(response.data.state ==1){
724
+          if(this.history_OH.length >0){
725
+            this.history_OH.length=0
726
+          }
732
           var list = response.data.data.list
727
           var list = response.data.data.list
733
           list.forEach((item) => {
728
           list.forEach((item) => {
734
 
729
 
811
   this.patientID = parseInt(id)
806
   this.patientID = parseInt(id)
812
   console.log('this.$route.query.patient_id',this.patientID);
807
   console.log('this.$route.query.patient_id',this.patientID);
813
   this.getlist()
808
   this.getlist()
809
+  this.getAllNurseList()
814
  }
810
  }
815
 }
811
 }
816
 </script>
812
 </script>

+ 13 - 2
src/xt_pages/user/evaluationtool/RassAssessment.vue View File

454
 import PatientSidebar from '../components/PatientSidebar.vue'
454
 import PatientSidebar from '../components/PatientSidebar.vue'
455
 import behavior from './behavior.vue'
455
 import behavior from './behavior.vue'
456
 import { uParseTime } from '@/utils/tools'
456
 import { uParseTime } from '@/utils/tools'
457
-import {savePatientHpressuresore} from '@/api/fallassement'
457
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
458
 export default {
458
 export default {
459
     components:{
459
     components:{
460
       PatientSidebar,
460
       PatientSidebar,
480
             RAssdate:this.getTime(new Date()),
480
             RAssdate:this.getTime(new Date()),
481
             rass_appraiser:'',
481
             rass_appraiser:'',
482
             Rass_num:0,//控制是rass还是LOS
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:'千亦雪'}],
483
+            rassoptions:[],
484
 
484
 
485
             qita_val:'',
485
             qita_val:'',
486
             qita_textarea:'',
486
             qita_textarea:'',
565
     created(){
565
     created(){
566
       const id = this.$route.params && this.$route.params.id
566
       const id = this.$route.params && this.$route.params.id
567
       this.patientID = parseInt(id)
567
       this.patientID = parseInt(id)
568
+      this.getAllNurseList()
568
     },
569
     },
569
     methods:{
570
     methods:{
570
       // RASS评估表
571
       // RASS评估表
934
           dialysis_no:event.dialysis_no
935
           dialysis_no:event.dialysis_no
935
         }
936
         }
936
       },
937
       },
938
+      // 评估人数据源
939
+      getAllNurseList(){
940
+        getAllNurseList().then(response=>{
941
+          if(response.data.state ==1){
942
+            var nurseList  = response.data.data.nurseList
943
+
944
+            this.rassoptions =nurseList
945
+          }
946
+        })
947
+      },
937
     },
948
     },
938
     computed:{
949
     computed:{
939
       // Pain_score(){
950
       // Pain_score(){

+ 17 - 6
src/xt_pages/user/evaluationtool/dailyLife.vue View File

177
                           <el-select v-model="appraiser" placeholder="请选择"  style="width:150px;">
177
                           <el-select v-model="appraiser" placeholder="请选择"  style="width:150px;">
178
                               <el-option
178
                               <el-option
179
                               v-for="item in optionsarr"
179
                               v-for="item in optionsarr"
180
-                              :key="item.id"
181
-                              :label="item.label"
182
-                              :value="item.id"
180
+                              :key="item.admin_user_id"
181
+                              :label="item.user_name"
182
+                              :value="item.admin_user_id"
183
                              >
183
                              >
184
                               </el-option>
184
                               </el-option>
185
                           </el-select>
185
                           </el-select>
205
 <script>
205
 <script>
206
 import PatientSidebar from '../components/PatientSidebar.vue'
206
 import PatientSidebar from '../components/PatientSidebar.vue'
207
 import { uParseTime } from '@/utils/tools'
207
 import { uParseTime } from '@/utils/tools'
208
-import {savePatientHpressuresore} from '@/api/fallassement'
208
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
209
 export default {
209
 export default {
210
   components:{
210
   components:{
211
     PatientSidebar
211
     PatientSidebar
229
       louti_val:null,
229
       louti_val:null,
230
       appraiser:'',
230
       appraiser:'',
231
       // optionsarr:[],
231
       // optionsarr:[],
232
-      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
232
+      optionsarr:[],
233
       date:this.getTime(new Date()),
233
       date:this.getTime(new Date()),
234
       Patient_info:{name:'',dialysis_no:''},
234
       Patient_info:{name:'',dialysis_no:''},
235
       jinshi:[{value:10,label:'可独立进食(10分)',is_check:false,check:0},
235
       jinshi:[{value:10,label:'可独立进食(10分)',is_check:false,check:0},
278
   created(){
278
   created(){
279
     const id = this.$route.params && this.$route.params.id
279
     const id = this.$route.params && this.$route.params.id
280
     this.patientID = parseInt(id)
280
     this.patientID = parseInt(id)
281
-    // this.patient_id = parseInt(id)
281
+    this.getAllNurseList()
282
   },
282
   },
283
   methods:{
283
   methods:{
284
     jinshiclick(e,item){
284
     jinshiclick(e,item){
517
               Patient_info:this.Patient_info}
517
               Patient_info:this.Patient_info}
518
         })
518
         })
519
     },
519
     },
520
+    // 患者信息
520
     tranpatient(event){
521
     tranpatient(event){
521
       console.log('event',event);
522
       console.log('event',event);
522
       this.Patient_info={
523
       this.Patient_info={
524
         dialysis_no:event.dialysis_no
525
         dialysis_no:event.dialysis_no
525
       }
526
       }
526
     },
527
     },
528
+    // 评估人数据源
529
+    getAllNurseList(){
530
+      getAllNurseList().then(response=>{
531
+        if(response.data.state ==1){
532
+          var nurseList  = response.data.data.nurseList
533
+
534
+          this.optionsarr =nurseList
535
+        }
536
+      })
537
+    },
527
   },
538
   },
528
   computed:{
539
   computed:{
529
     date_Totalpoints(){
540
     date_Totalpoints(){

File diff suppressed because it is too large
+ 2829 - 737
src/xt_pages/user/evaluationtool/hemodialysis.vue


+ 15 - 6
src/xt_pages/user/evaluationtool/mindAssessment.vue View File

82
                             <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
82
                             <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
83
                                 <el-option
83
                                 <el-option
84
                                 v-for="item in optionsarr"
84
                                 v-for="item in optionsarr"
85
-                                :key="item.id"
86
-                                :label="item.label"
87
-                                :value="item.id"
85
+                                :key="item.admin_user_id"
86
+                                :label="item.user_name"
87
+                                :value="item.admin_user_id"
88
                                 >
88
                                 >
89
                                 </el-option>
89
                                 </el-option>
90
                             </el-select>
90
                             </el-select>
102
 <script>
102
 <script>
103
 import { uParseTime } from '@/utils/tools'
103
 import { uParseTime } from '@/utils/tools'
104
 import PatientSidebar from '../components/PatientSidebar.vue'
104
 import PatientSidebar from '../components/PatientSidebar.vue'
105
-import {savePatientHpressuresore} from '@/api/fallassement'
105
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
106
 export default {
106
 export default {
107
   components:{
107
   components:{
108
     PatientSidebar
108
     PatientSidebar
124
           qingan:[{value:1,label:'有'},{value:0,label:'无'}],
124
           qingan:[{value:1,label:'有'},{value:0,label:'无'}],
125
           appraiser:'',
125
           appraiser:'',
126
           // optionsarr:[],
126
           // optionsarr:[],
127
-          optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
127
+          optionsarr:[],
128
           date:this.getTime(new Date()),
128
           date:this.getTime(new Date()),
129
           Patient_info:{name:'',dialysis_no:''},
129
           Patient_info:{name:'',dialysis_no:''},
130
       }
130
       }
133
   created(){
133
   created(){
134
     const id = this.$route.params && this.$route.params.id
134
     const id = this.$route.params && this.$route.params.id
135
     this.patientID = parseInt(id)
135
     this.patientID = parseInt(id)
136
-    // this.patient_id = parseInt(id)
136
+    this.getAllNurseList()
137
   },
137
   },
138
   methods:{
138
   methods:{
139
     // 历史评分
139
     // 历史评分
211
         dialysis_no:event.dialysis_no
211
         dialysis_no:event.dialysis_no
212
       }
212
       }
213
     },
213
     },
214
+    // 评估人数据源
215
+    getAllNurseList(){
216
+        getAllNurseList().then(response=>{
217
+          if(response.data.state ==1){
218
+            var nurseList  = response.data.data.nurseList
214
 
219
 
220
+            this.optionsarr =nurseList
221
+          }
222
+        })
223
+    },
215
   }
224
   }
216
 }
225
 }
217
 </script>
226
 </script>

+ 13 - 2
src/xt_pages/user/evaluationtool/nourishmentAssessment.vue View File

202
 <script>
202
 <script>
203
 import PatientSidebar from '../components/PatientSidebar.vue'
203
 import PatientSidebar from '../components/PatientSidebar.vue'
204
 import { uParseTime } from '@/utils/tools'
204
 import { uParseTime } from '@/utils/tools'
205
-import {savePatientHpressuresore} from '@/api/fallassement'
205
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
206
 export default {
206
 export default {
207
   components:{
207
   components:{
208
     PatientSidebar
208
     PatientSidebar
233
       yy_date:this.getTime(new Date()),
233
       yy_date:this.getTime(new Date()),
234
       Patient_info:{name:'',dialysis_no:''},
234
       Patient_info:{name:'',dialysis_no:''},
235
       yy_appraiser:'',
235
       yy_appraiser:'',
236
-      yy_options:[{admin_user_id:1,user_name:'寒千落'},{admin_user_id:2,user_name:'千仞雪'},{admin_user_id:3,user_name:'千亦雪'}],
236
+      yy_options:[],
237
       jibq_show:[],
237
       jibq_show:[],
238
       jibz_show:[],
238
       jibz_show:[],
239
       jibzz_show:[],
239
       jibzz_show:[],
256
   created(){
256
   created(){
257
     const id = this.$route.params && this.$route.params.id
257
     const id = this.$route.params && this.$route.params.id
258
     this.patientID = parseInt(id)
258
     this.patientID = parseInt(id)
259
+    this.getAllNurseList()
259
   },
260
   },
260
   methods:{
261
   methods:{
261
     // 选中分值
262
     // 选中分值
704
         dialysis_no:event.dialysis_no
705
         dialysis_no:event.dialysis_no
705
       }
706
       }
706
     },
707
     },
708
+     // 评估人数据源
709
+    getAllNurseList(){
710
+        getAllNurseList().then(response=>{
711
+          if(response.data.state ==1){
712
+            var nurseList  = response.data.data.nurseList
713
+
714
+            this.yy_options =nurseList
715
+          }
716
+        })
717
+    },
707
   },
718
   },
708
   computed:{
719
   computed:{
709
     nour_Totalpoints(){
720
     nour_Totalpoints(){

+ 4 - 3
src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue View File

198
       dialogVisible:false,
198
       dialogVisible:false,
199
       text:'',
199
       text:'',
200
       num:1,
200
       num:1,
201
-      tumble_options:[{admin_user_id:1,user_name:'小米'},{admin_user_id:2,user_name:'小明'},{admin_user_id:3,user_name:'小红'}],
202
-      // tumble_options:[],
201
+      // tumble_options:[{admin_user_id:1,user_name:'小米'},{admin_user_id:2,user_name:'小明'},{admin_user_id:3,user_name:'小红'}],
202
+      tumble_options:[],
203
       tumble:'',
203
       tumble:'',
204
       date:this.getTime(new Date()),
204
       date:this.getTime(new Date()),
205
       patient:'',
205
       patient:'',
367
         })
367
         })
368
       }
368
       }
369
     },
369
     },
370
+    // 评估人数据源
370
     getAllNurseList(){
371
     getAllNurseList(){
371
         getAllNurseList().then(response=>{
372
         getAllNurseList().then(response=>{
372
            if(response.data.state ==1){
373
            if(response.data.state ==1){
373
             console.log('response.data.data',response.data.data);
374
             console.log('response.data.data',response.data.data);
374
              var nurseList  = response.data.data.nurseList
375
              var nurseList  = response.data.data.nurseList
375
 
376
 
376
-            //  this.tumble_options =nurseList
377
+             this.tumble_options =nurseList
377
            }
378
            }
378
         })
379
         })
379
     },
380
     },

+ 10 - 11
src/xt_pages/user/evaluationtool/pressuresore.vue View File

229
                     <el-select v-model="duty" placeholder="请选择" style="width:120px;">
229
                     <el-select v-model="duty" placeholder="请选择" style="width:120px;">
230
                         <el-option
230
                         <el-option
231
                           v-for="item in dutyoptions"
231
                           v-for="item in dutyoptions"
232
-                          :key="item.id"
233
-                          :label="item.label"
234
-                          :value="item.id"
232
+                          :key="item.admin_user_id"
233
+                          :label="item.user_name"
234
+                          :value="item.admin_user_id"
235
                           >
235
                           >
236
                         </el-option>
236
                         </el-option>
237
                     </el-select>
237
                     </el-select>
291
                     护士长签字:
291
                     护士长签字:
292
                     <el-select v-model="nurse" placeholder="请选择" style="width: 120px;">
292
                     <el-select v-model="nurse" placeholder="请选择" style="width: 120px;">
293
                         <el-option
293
                         <el-option
294
-                        v-for="item in nurse_options"
295
-                        :key="item.value"
296
-                        :label="item.label"
297
-                        :value="item.value">
294
+                        v-for="item in dutyoptions"
295
+                        :key="item.admin_user_id"
296
+                        :label="item.user_name"
297
+                        :value="item.admin_user_id">
298
                         </el-option>
298
                         </el-option>
299
                     </el-select>
299
                     </el-select>
300
                 </p>
300
                 </p>
371
       date:this.getTime(new Date()),
371
       date:this.getTime(new Date()),
372
       huli_value:'',
372
       huli_value:'',
373
       family_date:this.getTime(new Date()),
373
       family_date:this.getTime(new Date()),
374
-      dutyoptions:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
374
+      dutyoptions:[],
375
       duty:'',
375
       duty:'',
376
       family_member:'',
376
       family_member:'',
377
       appraiser:'',
377
       appraiser:'',
378
       appraiser_date:this.getTime(new Date()),
378
       appraiser_date:this.getTime(new Date()),
379
       nurse:'',
379
       nurse:'',
380
-      nurse_options:[],
381
       nurse_date:this.getTime(new Date()),
380
       nurse_date:this.getTime(new Date()),
382
       hulicheckarr:[],//护理措施选中
381
       hulicheckarr:[],//护理措施选中
383
       hulicuoshi:[{id:1,label:'挂床头警示标识',hulicheck:0,is_check:false},{id:2,label:'保护受压皮肤,使用减压用具(气垫床/压疮床)',hulicheck:0,is_check:false},
382
       hulicuoshi:[{id:1,label:'挂床头警示标识',hulicheck:0,is_check:false},{id:2,label:'保护受压皮肤,使用减压用具(气垫床/压疮床)',hulicheck:0,is_check:false},
456
         return uParseTime(val, '{y}-{m}-{d}')
455
         return uParseTime(val, '{y}-{m}-{d}')
457
         }
456
         }
458
     },
457
     },
459
-    // 评估
458
+    // 评估人数据源
460
     getAllNurseList(){
459
     getAllNurseList(){
461
         getAllNurseList().then(response=>{
460
         getAllNurseList().then(response=>{
462
            if(response.data.state ==1){
461
            if(response.data.state ==1){
463
              var nurseList  = response.data.data.nurseList
462
              var nurseList  = response.data.data.nurseList
464
 
463
 
465
-             this.nurseList =nurseList
464
+             this.dutyoptions =nurseList
466
            }
465
            }
467
         })
466
         })
468
     },
467
     },

+ 16 - 5
src/xt_pages/user/evaluationtool/pruritusAssessment.vue View File

105
               <el-select v-model="pruritus_appraiser" placeholder="请选择" style="width:150px;">
105
               <el-select v-model="pruritus_appraiser" placeholder="请选择" style="width:150px;">
106
                   <el-option
106
                   <el-option
107
                   v-for="item in pruritus_options"
107
                   v-for="item in pruritus_options"
108
-                  :key="item.id"
109
-                  :label="item.label"
110
-                  :value="item.id"
108
+                  :key="item.admin_user_id"
109
+                  :label="item.user_name"
110
+                  :value="item.admin_user_id"
111
                   >
111
                   >
112
                   </el-option>
112
                   </el-option>
113
               </el-select>
113
               </el-select>
125
 <script>
125
 <script>
126
 import PatientSidebar from '../components/PatientSidebar.vue'
126
 import PatientSidebar from '../components/PatientSidebar.vue'
127
 import { uParseTime } from '@/utils/tools'
127
 import { uParseTime } from '@/utils/tools'
128
-import {savePatientHpressuresore} from '@/api/fallassement'
128
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
129
 export default {
129
 export default {
130
   components:{
130
   components:{
131
     PatientSidebar
131
     PatientSidebar
144
       radio3_points:0,
144
       radio3_points:0,
145
       checked_points:0,
145
       checked_points:0,
146
       // pruritus_options:[],
146
       // pruritus_options:[],
147
-      pruritus_options:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
147
+      pruritus_options:[],
148
       pruritus_appraiser:'',
148
       pruritus_appraiser:'',
149
       pruritus_date:this.getTime(new Date()),
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
       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},],
167
   created(){
167
   created(){
168
     const id = this.$route.params && this.$route.params.id
168
     const id = this.$route.params && this.$route.params.id
169
     this.patientID = parseInt(id)
169
     this.patientID = parseInt(id)
170
+    this.getAllNurseList()
170
   },
171
   },
171
   methods:{
172
   methods:{
172
     // 痒的部位选项
173
     // 痒的部位选项
380
         dialysis_no:event.dialysis_no
381
         dialysis_no:event.dialysis_no
381
       }
382
       }
382
     },
383
     },
384
+    // 评估人数据源
385
+    getAllNurseList(){
386
+        getAllNurseList().then(response=>{
387
+          if(response.data.state ==1){
388
+            var nurseList  = response.data.data.nurseList
389
+
390
+            this.pruritus_options =nurseList
391
+          }
392
+        })
393
+    },
383
   },
394
   },
384
   computed:{
395
   computed:{
385
     pruritus_Totalpoints(){
396
     pruritus_Totalpoints(){

+ 17 - 4
src/xt_pages/user/history/Children_history.vue View File

353
 <script>
353
 <script>
354
 import print from 'print-js'
354
 import print from 'print-js'
355
 import { uParseTime } from '@/utils/tools'
355
 import { uParseTime } from '@/utils/tools'
356
-import {  getPedDiatricFallAssessmentList,getPedPatientFallAssessmentById,deletePedPatientFallassment,updatepatientfallassessmentById } from '@/api/fallassement'
356
+import { getAllNurseList, getPedDiatricFallAssessmentList,getPedPatientFallAssessmentById,deletePedPatientFallassment,updatepatientfallassessmentById } from '@/api/fallassement'
357
 export default{
357
 export default{
358
   data(){
358
   data(){
359
     return{
359
     return{
394
       checked:'',
394
       checked:'',
395
       checkList:[],
395
       checkList:[],
396
       text:'',
396
       text:'',
397
-      tumble_options:[{admin_user_id:1,user_name:'小米'},{admin_user_id:2,user_name:'小明'},{admin_user_id:3,user_name:'小红'}],
398
-      // tumble_options:[],
397
+      // tumble_options:[{admin_user_id:1,user_name:'小米'},{admin_user_id:2,user_name:'小明'},{admin_user_id:3,user_name:'小红'}],
398
+      tumble_options:[],
399
       tumble:0,//评估人
399
       tumble:0,//评估人
400
       date:this.getTime(new Date()),//评估日期
400
       date:this.getTime(new Date()),//评估日期
401
       patient_id:0,
401
       patient_id:0,
663
               this.tableData[i].mark = updatenum.total,
663
               this.tableData[i].mark = updatenum.total,
664
               this.tableData[i].time = this.getTime(updatenum.record_date),
664
               this.tableData[i].time = this.getTime(updatenum.record_date),
665
               this.tableData[i].evaluate = this.getoptions(updatenum.admin_user_id)
665
               this.tableData[i].evaluate = this.getoptions(updatenum.admin_user_id)
666
+              this.tableData[i].list = updatenum
666
             }
667
             }
667
            }
668
            }
668
          }
669
          }
743
           return options[i].user_name
744
           return options[i].user_name
744
         }
745
         }
745
       }
746
       }
746
-    }
747
+    },
748
+    // 评估人数据源
749
+    getAllNurseList(){
750
+        getAllNurseList().then(response=>{
751
+           if(response.data.state ==1){
752
+            console.log('response.data.data',response.data.data);
753
+             var nurseList  = response.data.data.nurseList
754
+
755
+             this.tumble_options =nurseList
756
+           }
757
+        })
758
+    },
747
   },
759
   },
748
   computed:{
760
   computed:{
749
     pedia_Totalpoints:{
761
     pedia_Totalpoints:{
765
     this.Patient_info = this.$route.query.Patient_info
777
     this.Patient_info = this.$route.query.Patient_info
766
     // this.tumble_options = this.$route.query.tumble_options
778
     // this.tumble_options = this.$route.query.tumble_options
767
     this.getPedDiatricFallAssessmentList()
779
     this.getPedDiatricFallAssessmentList()
780
+    this.getAllNurseList()
768
   }
781
   }
769
 }
782
 }
770
 </script>
783
 </script>

+ 26 - 6
src/xt_pages/user/history/Pressure_history.vue View File

760
     this.patient_id = this.$route.query.patient_id
760
     this.patient_id = this.$route.query.patient_id
761
     this.Patient_info = this.$route.query.Patient_info
761
     this.Patient_info = this.$route.query.Patient_info
762
     this.getlist()
762
     this.getlist()
763
+    this.getAllNurseList()
763
   },
764
   },
764
   methods:{
765
   methods:{
765
     // 返回
766
     // 返回
1031
             if(item.text !=''){
1032
             if(item.text !=''){
1032
               const text =JSON.parse(item.text)
1033
               const text =JSON.parse(item.text)
1033
               console.log('text',text);
1034
               console.log('text',text);
1034
-              const arr ={ 
1035
+              const arr ={
1035
                 id:item.id,
1036
                 id:item.id,
1036
                 time:text.date,
1037
                 time:text.date,
1037
                 ganzhi:text.ganzhi,
1038
                 ganzhi:text.ganzhi,
1062
     getoptions(ids){
1063
     getoptions(ids){
1063
      const options= this.dutyoptions
1064
      const options= this.dutyoptions
1064
       for(let i in options){
1065
       for(let i in options){
1065
-        if(options[i].id == ids){
1066
-          return options[i].label
1066
+        if(options[i].admin_user_id == ids){
1067
+          return options[i].user_name
1068
+        }
1069
+      }
1070
+    },
1071
+     // 护士长
1072
+    getnurse(ids){
1073
+     const options= this.nurse_options
1074
+      for(let i in options){
1075
+        if(options[i].admin_user_id == ids){
1076
+          return options[i].user_name
1067
         }
1077
         }
1068
       }
1078
       }
1069
     },
1079
     },
1081
           console.log('arr2',arr2);
1091
           console.log('arr2',arr2);
1082
       }
1092
       }
1083
       return arr2
1093
       return arr2
1084
-    }
1094
+    },
1095
+    // 评估人数据源
1096
+    getAllNurseList(){
1097
+      getAllNurseList().then(response=>{
1098
+          if(response.data.state ==1){
1099
+            var nurseList  = response.data.data.nurseList
1100
+
1101
+            this.dutyoptions =nurseList
1102
+          }
1103
+      })
1104
+    },
1085
   },
1105
   },
1086
   computed:{
1106
   computed:{
1087
     mark:{
1107
     mark:{
1088
       get(){
1108
       get(){
1089
         this.press_zong = this.ganzhi*1 + this.shidu*1 + this.huodong*1 + this.yidong*1 + this.mocha*1 + this.yingyang*1
1109
         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 
1110
+        return this.press_zong
1091
       },
1111
       },
1092
       set(val){
1112
       set(val){
1093
         return this.press_zong = val
1113
         return this.press_zong = val
1094
       }
1114
       }
1095
-      
1115
+
1096
     }
1116
     }
1097
   }
1117
   }
1098
 }
1118
 }

+ 12 - 4
src/xt_pages/user/history/RASS_history.vue View File

323
       RAssradio:'',
323
       RAssradio:'',
324
       dayin:this.getTime2(new Date()),
324
       dayin:this.getTime2(new Date()),
325
       num:1,
325
       num:1,
326
-      rassoptions:[{admin_user_id:1,user_name:'寒千落'},{admin_user_id:2,user_name:'千仞雪'},{admin_user_id:3,user_name:'千亦雪'}],
326
+      rassoptions:[],
327
       tengtable:[],
327
       tengtable:[],
328
       LOS:[{title:'0分', label:'清醒',value:0},{title:'1分', label:'有些昏昏欲睡,但容易唤醒',value:1},
328
       LOS:[{title:'0分', label:'清醒',value:0},{title:'1分', label:'有些昏昏欲睡,但容易唤醒',value:1},
329
             {title:'2分', label:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态',value:2},
329
             {title:'2分', label:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态',value:2},
350
     this.Patient_info = this.$route.query.Patient_info
350
     this.Patient_info = this.$route.query.Patient_info
351
     this.getRass_list()
351
     this.getRass_list()
352
     this.getteng_list()
352
     this.getteng_list()
353
+    this.getAllNurseList()
353
   },
354
   },
354
   methods:{
355
   methods:{
355
     // 返回
356
     // 返回
574
         }
575
         }
575
       }
576
       }
576
     },
577
     },
577
-    // getqita(ids,){
578
-    //   if()
579
-    // }
578
+    // 评估人数据源
579
+    getAllNurseList(){
580
+      getAllNurseList().then(response=>{
581
+        if(response.data.state ==1){
582
+          var nurseList  = response.data.data.nurseList
583
+
584
+          this.rassoptions =nurseList
585
+        }
586
+      })
587
+    },
580
 
588
 
581
   }
589
   }
582
 }
590
 }

+ 33 - 21
src/xt_pages/user/history/daoguan_history.vue View File

177
                     <td rowspan="3">
177
                     <td rowspan="3">
178
                       <div style="vertical-align: top; color: black; padding: 5px;">
178
                       <div style="vertical-align: top; color: black; padding: 5px;">
179
                         <span >
179
                         <span >
180
-                          <template v-for="item in items.huli_show">  
180
+                          <template v-for="item in items.cuoshi1">  
181
                             <span >                  
181
                             <span >                  
182
                               <label><input type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/>&nbsp;<span>{{ item.id }}.</span>{{item.label}}</label> <br/>
182
                               <label><input type="checkbox" v-model="item.is_check" @click="cuoshi(item)"/>&nbsp;<span>{{ item.id }}.</span>{{item.label}}</label> <br/>
183
                             </span> 
183
                             </span> 
340
                 <el-select v-model="Dutynurse" placeholder="请选择" style="width:150px;">
340
                 <el-select v-model="Dutynurse" placeholder="请选择" style="width:150px;">
341
                     <el-option
341
                     <el-option
342
                     v-for="item in Dutynursearr"
342
                     v-for="item in Dutynursearr"
343
-                    :key="item.id"
344
-                    :label="item.label"
345
-                    :value="item.id"
343
+                    :key="item.admin_user_id"
344
+                    :label="item.user_name"
345
+                    :value="item.admin_user_id"
346
                     >
346
                     >
347
                     </el-option>
347
                     </el-option>
348
                 </el-select>
348
                 </el-select>
379
                 评估人签字:
379
                 评估人签字:
380
                 <el-select v-model="appraiser" placeholder="请选择" style="width: 120px;">
380
                 <el-select v-model="appraiser" placeholder="请选择" style="width: 120px;">
381
                     <el-option
381
                     <el-option
382
-                    v-for="item in optionsarr"
383
-                    :key="item.id"
384
-                    :label="item.label"
385
-                    :value="item.id">
382
+                    v-for="item in Dutynursearr"
383
+                    :key="item.admin_user_id"
384
+                    :label="item.user_name"
385
+                    :value="item.admin_user_id">
386
                     </el-option>
386
                     </el-option>
387
                 </el-select>
387
                 </el-select>
388
             </p>
388
             </p>
402
                 护士长签字:
402
                 护士长签字:
403
                 <el-select v-model="hushi" placeholder="请选择" style="width: 120px;">
403
                 <el-select v-model="hushi" placeholder="请选择" style="width: 120px;">
404
                     <el-option
404
                     <el-option
405
-                    v-for="item in hushiarr"
406
-                    :key="item.id"
407
-                    :label="item.label"
408
-                    :value="item.id">
405
+                    v-for="item in Dutynursearr"
406
+                    :key="item.admin_user_id"
407
+                    :label="item.user_name"
408
+                    :value="item.admin_user_id">
409
                     </el-option>
409
                     </el-option>
410
                 </el-select>
410
                 </el-select>
411
             </p>
411
             </p>
472
       tableData:[],
472
       tableData:[],
473
       date:this.getTime(new Date()),
473
       date:this.getTime(new Date()),
474
       appraiser:'',
474
       appraiser:'',
475
-      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
475
+      // optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
476
       Dutynurse:'',//责任护士
476
       Dutynurse:'',//责任护士
477
       // Dutynursearr:[],//责任护士数组
477
       // Dutynursearr:[],//责任护士数组
478
-      Dutynursearr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
478
+      Dutynursearr:[],
479
       jiashu_date:this.getTime(new Date()),//家属时间
479
       jiashu_date:this.getTime(new Date()),//家属时间
480
       zhuanggui:'',//转归
480
       zhuanggui:'',//转归
481
       hushi:'',//护理
481
       hushi:'',//护理
482
-      hushiarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],//护理
482
+      // hushiarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],//护理
483
       hushi_date:this.getTime(new Date()),//护理时间
483
       hushi_date:this.getTime(new Date()),//护理时间
484
       limit:10,
484
       limit:10,
485
       page:1,
485
       page:1,
516
     this.patient_id = this.$route.query.patient_id
516
     this.patient_id = this.$route.query.patient_id
517
     this.Patient_info = this.$route.query.Patient_info
517
     this.Patient_info = this.$route.query.Patient_info
518
     this.getlist()
518
     this.getlist()
519
+    this.getAllNurseList()
519
   },
520
   },
520
   methods:{
521
   methods:{
521
     fanhui(){
522
     fanhui(){
744
       getPatientBedlist(params).then(response =>{
745
       getPatientBedlist(params).then(response =>{
745
         if(response.data.state == 1){
746
         if(response.data.state == 1){
746
           var list = response.data.data.list
747
           var list = response.data.data.list
747
-          console.log('list-----',list);
748
+          
748
           list.forEach(item => {
749
           list.forEach(item => {
749
             if(item.text !=''){
750
             if(item.text !=''){
750
               const text = JSON.parse(item.text)
751
               const text = JSON.parse(item.text)
752
+              console.log('list-----',text);
751
               const arr = {
753
               const arr = {
752
                 id:item.id,
754
                 id:item.id,
753
                 radio:text.radio,
755
                 radio:text.radio,
761
                 zhuanggui:text.zhuanggui,
763
                 zhuanggui:text.zhuanggui,
762
                 hushi:text.hushi,
764
                 hushi:text.hushi,
763
                 hushi_date:text.hushi_date,
765
                 hushi_date:text.hushi_date,
764
-                huli_show:text.cuoshi1,
766
+                cuoshi1:text.cuoshi1,
765
                 appraiser:text.appraiser
767
                 appraiser:text.appraiser
766
               }
768
               }
767
               this.tableData.push(arr)
769
               this.tableData.push(arr)
775
     
777
     
776
      // 评估护士
778
      // 评估护士
777
      getoptions(ids){
779
      getoptions(ids){
778
-     const options= this.optionsarr
780
+      const options= this.Dutynursearr
779
       for(let i in options){
781
       for(let i in options){
780
-        if(options[i].id == ids){
781
-          return options[i].label
782
+        if(options[i].admin_user_id == ids){
783
+          return options[i].user_name
782
         }
784
         }
783
       }
785
       }
784
     },
786
     },
794
         var arr2 = arr.join()
796
         var arr2 = arr.join()
795
       }
797
       }
796
       return arr2
798
       return arr2
797
-    }
799
+    },
800
+    // 评估人数据源
801
+    getAllNurseList(){
802
+      getAllNurseList().then(response=>{
803
+        if(response.data.state ==1){
804
+          var nurseList  = response.data.data.nurseList
805
+
806
+          this.Dutynursearr =nurseList
807
+        }
808
+      })
809
+    },
798
   },
810
   },
799
   computed:{
811
   computed:{
800
     duct_Totalpoints:{
812
     duct_Totalpoints:{

+ 19 - 9
src/xt_pages/user/history/date_history.vue View File

525
                           <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
525
                           <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
526
                               <el-option
526
                               <el-option
527
                               v-for="item in optionsarr"
527
                               v-for="item in optionsarr"
528
-                              :key="item.id"
529
-                              :label="item.label"
530
-                              :value="item.id"
528
+                              :key="item.admin_user_id"
529
+                              :label="item.user_name"
530
+                              :value="item.admin_user_id"
531
                               >
531
                               >
532
                               </el-option>
532
                               </el-option>
533
                           </el-select>
533
                           </el-select>
589
       row:'',
589
       row:'',
590
       tableData:[],
590
       tableData:[],
591
       appraiser:0,
591
       appraiser:0,
592
-      // optionsarr:[],
593
-      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
592
+      optionsarr:[],
594
       date:this.getTime(new Date()),
593
       date:this.getTime(new Date()),
595
       patient_id:0,
594
       patient_id:0,
596
       Patient_info:{},
595
       Patient_info:{},
1138
         }
1137
         }
1139
     },
1138
     },
1140
      // 评估护士
1139
      // 评估护士
1141
-     getoptions(ids){
1140
+    getoptions(ids){
1142
      const options= this.optionsarr
1141
      const options= this.optionsarr
1143
       for(let i in options){
1142
       for(let i in options){
1144
-        if(options[i].id == ids){
1145
-          return options[i].label
1143
+        if(options[i].admin_user_id == ids){
1144
+          return options[i].user_name
1146
         }
1145
         }
1147
       }
1146
       }
1148
-    }
1147
+    },
1148
+    // 评估人数据源
1149
+    getAllNurseList(){
1150
+      getAllNurseList().then(response=>{
1151
+        if(response.data.state ==1){
1152
+          var nurseList  = response.data.data.nurseList
1153
+
1154
+          this.optionsarr =nurseList
1155
+        }
1156
+      })
1157
+    },
1149
   },
1158
   },
1150
   computed:{
1159
   computed:{
1151
     date_Totalpoints:{
1160
     date_Totalpoints:{
1165
     this.Patient_info = this.$route.query.Patient_info
1174
     this.Patient_info = this.$route.query.Patient_info
1166
     // this.tumble_options = this.$route.query.tumble_options
1175
     // this.tumble_options = this.$route.query.tumble_options
1167
     this.getlist()
1176
     this.getlist()
1177
+    this.getAllNurseList()
1168
   }
1178
   }
1169
 }
1179
 }
1170
 </script>
1180
 </script>

+ 18 - 7
src/xt_pages/user/history/mind_history.vue View File

199
               <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
199
               <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
200
                   <el-option
200
                   <el-option
201
                   v-for="item in optionsarr"
201
                   v-for="item in optionsarr"
202
-                  :key="item.id"
203
-                  :label="item.label"
204
-                  :value="item.id"
202
+                  :key="item.admin_user_id"
203
+                  :label="item.user_name"
204
+                  :value="item.admin_user_id"
205
                   >
205
                   >
206
                   </el-option>
206
                   </el-option>
207
               </el-select>
207
               </el-select>
255
       qingan:[{value:1,label:'有'},{value:0,label:'无'}],
255
       qingan:[{value:1,label:'有'},{value:0,label:'无'}],
256
       appraiser:'',
256
       appraiser:'',
257
       // optionsarr:[],
257
       // optionsarr:[],
258
-      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
258
+      optionsarr:[],
259
       date:this.getTime(new Date()),
259
       date:this.getTime(new Date()),
260
       limit:10,
260
       limit:10,
261
       page:1,
261
       page:1,
269
     this.patient_id = this.$route.query.patient_id
269
     this.patient_id = this.$route.query.patient_id
270
     this.Patient_info = this.$route.query.Patient_info
270
     this.Patient_info = this.$route.query.Patient_info
271
     this.getlist()
271
     this.getlist()
272
+    this.getAllNurseList()
272
   },
273
   },
273
   methods:{
274
   methods:{
274
     fanhui(){
275
     fanhui(){
490
     getoptions(ids){
491
     getoptions(ids){
491
      const options= this.optionsarr
492
      const options= this.optionsarr
492
       for(let i in options){
493
       for(let i in options){
493
-        if(options[i].id == ids){
494
-          return options[i].label
494
+        if(options[i].admin_user_id == ids){
495
+          return options[i].user_name
495
         }
496
         }
496
       }
497
       }
497
-    }
498
+    },
499
+    // 评估人数据源
500
+    getAllNurseList(){
501
+        getAllNurseList().then(response=>{
502
+          if(response.data.state ==1){
503
+            var nurseList  = response.data.data.nurseList
504
+
505
+            this.optionsarr =nurseList
506
+          }
507
+        })
508
+    },
498
   }
509
   }
499
 }
510
 }
500
 </script>
511
 </script>

+ 11 - 1
src/xt_pages/user/history/nourishment_history.vue View File

540
       check3:0,
540
       check3:0,
541
       yy_date:this.getTime(new Date()),
541
       yy_date:this.getTime(new Date()),
542
       yy_appraiser:'',
542
       yy_appraiser:'',
543
-      yy_options:[{admin_user_id:1,user_name:'寒千落'},{admin_user_id:2,user_name:'千仞雪'},{admin_user_id:3,user_name:'千亦雪'}],
543
+      yy_options:[],
544
       jibq_show:[],
544
       jibq_show:[],
545
       jibz_show:[],
545
       jibz_show:[],
546
       jibzz_show:[],
546
       jibzz_show:[],
574
     this.patient_id = this.$route.query.patient_id
574
     this.patient_id = this.$route.query.patient_id
575
     this.Patient_info = this.$route.query.Patient_info
575
     this.Patient_info = this.$route.query.Patient_info
576
     this.getlist()
576
     this.getlist()
577
+    this.getAllNurseList()
577
   },
578
   },
578
   methods:{
579
   methods:{
579
     fanhui(){
580
     fanhui(){
1279
         }
1280
         }
1280
       }
1281
       }
1281
     },
1282
     },
1283
+    // 评估人数据源
1284
+    getAllNurseList(){
1285
+        getAllNurseList().then(response=>{
1286
+          if(response.data.state ==1){
1287
+            var nurseList  = response.data.data.nurseList
1288
+            this.yy_options =nurseList
1289
+          }
1290
+        })
1291
+    },
1282
   },
1292
   },
1283
   computed:{
1293
   computed:{
1284
     nour_Totalpoints:{
1294
     nour_Totalpoints:{

+ 23 - 10
src/xt_pages/user/history/pruritus_history.vue View File

170
                               <label><input type="checkbox" class="check" :value="item.id" v-model="item.is_check"  @click="handleCheckedCitiesChange($event,item)"/>&nbsp;{{ item.label }}</label>
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>
171
                           </span>
172
                           <label ><input type="checkbox" class="check" value="其他"  v-model="items.is_check1" @click="qita_click"/>
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>
173
+                              &nbsp;其他 
174
+                              <span style="border-bottom: 1px solid black;display: inline-block;width: 100px;">{{ items.buwei_input }}</span>
175
+                              <!-- <el-input v-model="buwei_input" style="width: 100px;"></el-input> -->
174
                           </label>
176
                           </label>
175
                           <label >
177
                           <label >
176
                             <input type="checkbox" class="checkbox" value="全身" v-model="items.is_check2" @click="quan_change"/>&nbsp;全身
178
                             <input type="checkbox" class="checkbox" value="全身" v-model="items.is_check2" @click="quan_change"/>&nbsp;全身
326
 
328
 
327
             <div class="bottoms">
329
             <div class="bottoms">
328
               <span>评估人:</span>
330
               <span>评估人:</span>
329
-              <el-select v-model="pruritus_appraiser" placeholder="请选择" >
331
+              <el-select v-model="pruritus_appraiser" placeholder="请选择" style="width:150px;">
330
                   <el-option
332
                   <el-option
331
                   v-for="item in pruritus_options"
333
                   v-for="item in pruritus_options"
332
-                  :key="item.id"
333
-                  :label="item.label"
334
-                  :value="item.id"
335
-                  style="width:150px;">
334
+                  :key="item.admin_user_id"
335
+                  :label="item.user_name"
336
+                  :value="item.admin_user_id"
337
+                  >
336
                   </el-option>
338
                   </el-option>
337
               </el-select>
339
               </el-select>
338
             </div>
340
             </div>
389
       check1:0,
391
       check1:0,
390
       is_check2:false,
392
       is_check2:false,
391
       check2:0,
393
       check2:0,
392
-      pruritus_options:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
394
+      pruritus_options:[],
393
       pruritus_appraiser:'',
395
       pruritus_appraiser:'',
394
       buwei_input:'',
396
       buwei_input:'',
395
       pruritus_date:this.getTime(new Date()),
397
       pruritus_date:this.getTime(new Date()),
414
     this.patient_id = this.$route.query.patient_id
416
     this.patient_id = this.$route.query.patient_id
415
     this.Patient_info = this.$route.query.Patient_info
417
     this.Patient_info = this.$route.query.Patient_info
416
     this.getlist()
418
     this.getlist()
419
+    this.getAllNurseList()
417
   },
420
   },
418
   methods:{
421
   methods:{
419
     // 返回
422
     // 返回
822
     getoptions(ids){
825
     getoptions(ids){
823
      const options= this.pruritus_options
826
      const options= this.pruritus_options
824
       for(let i in options){
827
       for(let i in options){
825
-        if(options[i].id == ids){
826
-          return options[i].label
828
+        if(options[i].admin_user_id == ids){
829
+          return options[i].user_name
827
         }
830
         }
828
       }
831
       }
829
     },
832
     },
863
     //     const val = '全身'
866
     //     const val = '全身'
864
     //     return val
867
     //     return val
865
     //   }
868
     //   }
866
-    // },
869
+    // }, pruritus_options
867
     getchegdu(val){
870
     getchegdu(val){
868
       const text = this.chengdu
871
       const text = this.chengdu
869
       for(let i in text){
872
       for(let i in text){
892
         }
895
         }
893
       }
896
       }
894
     },
897
     },
898
+    // 评估人数据源
899
+    getAllNurseList(){
900
+        getAllNurseList().then(response=>{
901
+          if(response.data.state ==1){
902
+            var nurseList  = response.data.data.nurseList
903
+
904
+            this.pruritus_options =nurseList
905
+          }
906
+        })
907
+    },
895
   },
908
   },
896
   computed:{
909
   computed:{
897
     pruritus_Totalpoints:{
910
     pruritus_Totalpoints:{

+ 388 - 444
src/xt_pages/user/history/tumble_history.vue View File

87
         </div>
87
         </div>
88
 
88
 
89
         <div id="pingfeng" >
89
         <div id="pingfeng" >
90
-          <div class="diedao_content" style="">
90
+          <div class="diedao_content" style=""  v-for="(item,index) in multipleSelection" :key="index">
91
             <div style="width:100%;margin-top: 20px;">
91
             <div style="width:100%;margin-top: 20px;">
92
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
92
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
93
               <div style="margin-top: 20px;font-size: 16px;">
93
               <div style="margin-top: 20px;font-size: 16px;">
94
-                <span>患者姓名:</span>
95
-                <span>透析号:</span>
96
-                <span>打印时间:</span>
94
+                <span>患者姓名:{{ patients.name }}</span>
95
+                <span>透析号:{{ patients.dialysis_no }}</span>
96
+                <span>打印时间:{{time_now}}</span>
97
               </div>
97
               </div>
98
               <table class="tables" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
98
               <table class="tables" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
99
                 <tr>
99
                 <tr>
102
                   <td style="">护理措施</td>
102
                   <td style="">护理措施</td>
103
                   <td style="width:150px">评估护士</td>
103
                   <td style="width:150px">评估护士</td>
104
                 </tr>
104
                 </tr>
105
-                <tr v-for="item in multipleSelection" >
106
-                  <td>{{item.time}}</td>
107
-                  <td>{{item.mark}}</td>
108
-                  <td>{{item.measures}}</td>
109
-                  <td>{{item.evaluate}}</td>
105
+                <tr>
106
+                  <td>{{getTime(item.record_date)}}</td>
107
+                  <td>{{item.total}}</td>
108
+                  <td>{{item.content}}</td>
109
+                  <td>{{getAdminName(item.admin_user_id)}}</td>
110
                 </tr>
110
                 </tr>
111
               </table>
111
               </table>
112
             </div>
112
             </div>
130
         </div>
130
         </div>
131
 
131
 
132
         <div id="mingxi" >
132
         <div id="mingxi" >
133
-          <div class="diedao_content" style="">
133
+          <div class="diedao_content" style="" v-for="(item,index) in printList" :key="index">
134
             <div style="width:100%;margin-top: 20px;">
134
             <div style="width:100%;margin-top: 20px;">
135
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
135
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
136
               <div style="margin-top: 20px;font-size: 16px;">
136
               <div style="margin-top: 20px;font-size: 16px;">
137
-                <span>患者姓名:</span>
138
-                <span>透析号:</span>
139
-                <span>评估日期:</span>
140
-                <span>评估护士:</span>
141
-                <span>总分:</span>
137
+                <span>患者姓名:{{ patients.name }}</span>
138
+                <span>透析号:{{ patients.dialysis_no }}</span>
139
+                <span>评估日期:{{getTime(item.record_date)}}</span>
140
+                <span>评估护士:{{getAdminName(item.admin_user_id)}}</span>
141
+                <span>总分: {{item.total}}
142
+                </span>
142
               </div>
143
               </div>
143
               <table class="tables" border style="width: 100%;border-collapse: collapse;font-size: 16px;">
144
               <table class="tables" border style="width: 100%;border-collapse: collapse;font-size: 16px;">
144
                 <thead>
145
                 <thead>
233
                   </tr>
234
                   </tr>
234
                 </tbody>
235
                 </tbody>
235
               </table>
236
               </table>
236
-              <p><span>健康宣教:</span> </p>
237
-              <p> <span>护理措施:</span></p>
237
+              <p><span>健康宣教:{{ item.textOne }} </span> </p>
238
+              <p> <span>护理措施:{{ item.text }}</span></p>
238
               <p>
239
               <p>
239
                 <span>预防效果:</span>
240
                 <span>预防效果:</span>
240
                 <span v-for="item in xiaoguo" class="rightjiange">
241
                 <span v-for="item in xiaoguo" class="rightjiange">
243
               </p>
244
               </p>
244
               <p>
245
               <p>
245
                 <span>透析间期跌倒事件:</span>
246
                 <span>透析间期跌倒事件:</span>
246
-                <span class="rightjiange">日期:</span>
247
-                <span v-for="item in touxidiedao" class="rightjiange">
248
-                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
247
+                <span class="rightjiange">日期:{{ getTime(item.ping_date) }}</span>
248
+                <span v-for="item in touxidiedao" style="margin-right:10px">
249
+                   <label><input type="checkbox" name="ball" value="volleyball"  v-model="item.touxidiedao_check"/>&nbsp{{ item.content }}</label>
249
                 </span>
250
                 </span>
250
               </p>
251
               </p>
251
               <p>
252
               <p>
252
-                打印时间:
253
+                打印时间:{{ time_now }}
253
               </p>
254
               </p>
254
             </div>
255
             </div>
255
           </div>
256
           </div>
260
         <el-button type="primary" @click="mingxi_dialogVisible = false">确 定</el-button>
261
         <el-button type="primary" @click="mingxi_dialogVisible = false">确 定</el-button>
261
       </span>
262
       </span>
262
     </el-dialog>
263
     </el-dialog>
264
+
265
+    
263
     <!-- 编辑 -->
266
     <!-- 编辑 -->
264
     <el-dialog
267
     <el-dialog
265
       title="编辑"
268
       title="编辑"
558
                                 <td>
561
                                 <td>
559
                                   <div class="xiaojige">
562
                                   <div class="xiaojige">
560
                                     <label>
563
                                     <label>
561
-                                      <input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item.content }}
564
+                                      <input type="checkbox" name="ball" value="volleyball"  v-model="item.is_content_check_one"/>&nbsp;{{ item.contentOne }}
562
                                     </label><br>
565
                                     </label><br>
563
                                    
566
                                    
564
                                   </div>
567
                                   </div>
749
   </div>
752
   </div>
750
 </template>
753
 </template>
751
 <script>
754
 <script>
755
+const moment = require('moment')
752
 import print from 'print-js'
756
 import print from 'print-js'
753
-import {getPatientFallsessmentList,getPatientFallssessmentById,DeletePatientFallassessment,updatePatientFallassment}  from '@/api/fallassement'
757
+import {getPatientFallsessmentList,getPatientFallssessmentById,DeletePatientFallassessment,updatePatientFallassment,getPatientFallaessmentListByIds,getPatientFallaessmentListOne}  from '@/api/fallassement'
754
 import { uParseTime } from "@/utils/tools";
758
 import { uParseTime } from "@/utils/tools";
755
 export default{
759
 export default{
756
   data(){
760
   data(){
772
       checkList:[],
776
       checkList:[],
773
       centerDialogVisible:false,
777
       centerDialogVisible:false,
774
       textarea2:'',
778
       textarea2:'',
775
-      nianlin:[{id:0,age_check:false,content:"≥65岁(1分)",is_status:2},{id:0,age_check:false,content:"<65(0分)",is_status:2}],
776
-      jiwang:[{id:0,jiwang_check:false,content:"有跌倒史(2分)",is_status:2},{id:0,jiwang_check:false,content:"有坠床史(2分)",is_status:2} ,{id:0,jiwang_check:false,content:"晕厥(2分)",is_status:2},{id:0,jiwang_check:false,content:"低血压(2分)",is_status:2}],
777
-      yishizt:[{id:0,yishizt_check:false,content:"烦躁(4分)",is_status:2},{id:0,yishizt_check:false,content:"谵妄(3分)",is_status:2}, {id:0,yishizt_check:false,content:"嗜睡(2分)",is_status:2},{id:0,yishizt_check:false,content:"模糊(2分)",is_status:2},{id:0,yishizt_check:false,content:"痴呆(2分)",is_status:2},{id:0,yishizt_check:false,content:"昏迷(1分)",is_status:2}],
778
-      ganguan:[{id:0,ganguan_check:false,content:"头晕(4分)",is_status:2},{id:0,ganguan_check:false,content:"视觉障碍(2分)",is_status:2},{id:0,ganguan_check:false,content:"听力障碍(2分)",is_status:2}],
779
-      shentizk:[{id:0,shentizk_check:false,content:"借助器械(3分)",is_status:2},{id:0,shentizk_check:false,content:"肢体残缺(3分)",is_status:2},{id:0,shentizk_check:false,content:"偏瘫(3分)",is_status:2},{id:0,shentizk_check:false,content:"肌肉震颤麻痹(2分)",is_status:2},{id:0,shentizk_check:false,content:"截瘫(3分)",is_status:2},{id:0,shentizk_check:false,content:"乏力(1分)",is_status:2},{id:0,shentizk_check:false,content:"关节僵硬、变形、疼痛(3分)",is_status:2},{id:0,shentizk_check:false,content:"失眠(1分)",is_status:2}],
780
-      syyaowu:[{id:0,syyaowu_check:false,content:"镇静安眠药(2分)",is_status:2},{id:0,syyaowu_check:false,content:"降压药(1分)",is_status:2},{id:0,syyaowu_check:false,content:"降糖药(1分)",is_status:2},{id:0,syyaowu_check:false,content:"其他高危药物(1分)",is_status:2}],
781
-      paixie:[{id:0,paixie_check:false,content:"便秘(2分)",is_status:2},{id:0,paixie_check:false,content:"腹泻(1分)",is_status:2},{id:0,paixie_check:false,content:"尿频(1分)",is_status:2}],
782
-      zilinl:[{id:0,zilinl_check:false,content:"无(4分)",is_status:2},{id:0,zilinl_check:false,content:"部分(3分)",is_status:2}],
783
-      xiaoguo:[{id:0,xiaoguo_check:false,content:"未发生跌倒",is_status:2},{id:0,xiaoguo_check:false,content:"发生跌倒",is_status:2},{id:0,xiaoguo_check:false,content:"发生坠床",is_status:2}],
784
-      touxidiedao:[{id:0,touxidiedao_check:false,content:"发生跌倒",is_status:2},{id:0,touxidiedao_check:false,content:"发生坠床",is_status:2}],
779
+      nianlin:[{id:1,age_check:false,content:"≥65岁(1分)",is_status:2},{id:2,age_check:false,content:"<65(0分)",is_status:2}],
780
+      jiwang:[{id:1,jiwang_check:false,content:"有跌倒史(2分)",is_status:2},{id:2,jiwang_check:false,content:"有坠床史(2分)",is_status:2} ,{id:3,jiwang_check:false,content:"晕厥(2分)",is_status:2},{id:4,jiwang_check:false,content:"低血压(2分)",is_status:2}],
781
+      yishizt:[{id:1,yishizt_check:false,content:"烦躁(4分)",is_status:2},{id:2,yishizt_check:false,content:"谵妄(3分)",is_status:2}, {id:3,yishizt_check:false,content:"嗜睡(2分)",is_status:2},{id:4,yishizt_check:false,content:"模糊(2分)",is_status:2},{id:5,yishizt_check:false,content:"痴呆(2分)",is_status:2},{id:6,yishizt_check:false,content:"昏迷(1分)",is_status:2}],
782
+      ganguan:[{id:1,ganguan_check:false,content:"头晕(4分)",is_status:2},{id:2,ganguan_check:false,content:"视觉障碍(2分)",is_status:2},{id:3,ganguan_check:false,content:"听力障碍(2分)",is_status:2}],
783
+      shentizk:[{id:1,shentizk_check:false,content:"借助器械(3分)",is_status:2},{id:2,shentizk_check:false,content:"肢体残缺(3分)",is_status:2},{id:3,shentizk_check:false,content:"偏瘫(3分)",is_status:2},{id:4,shentizk_check:false,content:"肌肉震颤麻痹(2分)",is_status:2},{id:5,shentizk_check:false,content:"截瘫(3分)",is_status:2},{id:6,shentizk_check:false,content:"乏力(1分)",is_status:2},{id:7,shentizk_check:false,content:"关节僵硬、变形、疼痛(3分)",is_status:2},{id:8,shentizk_check:false,content:"失眠(1分)",is_status:2}],
784
+      syyaowu:[{id:1,syyaowu_check:false,content:"镇静安眠药(2分)",is_status:2},{id:2,syyaowu_check:false,content:"降压药(1分)",is_status:2},{id:3,syyaowu_check:false,content:"降糖药(1分)",is_status:2},{id:4,syyaowu_check:false,content:"其他高危药物(1分)",is_status:2}],
785
+      paixie:[{id:1,paixie_check:false,content:"便秘(2分)",is_status:2},{id:2,paixie_check:false,content:"腹泻(1分)",is_status:2},{id:3,paixie_check:false,content:"尿频(1分)",is_status:2}],
786
+      zilinl:[{id:1,zilinl_check:false,content:"无(4分)",is_status:2},{id:2,zilinl_check:false,content:"部分(3分)",is_status:2}],
787
+      xiaoguo:[{id:1,xiaoguo_check:false,content:"未发生跌倒",is_status:2},{id:2,xiaoguo_check:false,content:"发生跌倒",is_status:2},{id:3,xiaoguo_check:false,content:"发生坠床",is_status:2}],
788
+      touxidiedao:[{id:1,touxidiedao_check:false,content:"发生跌倒",is_status:2},{id:2,touxidiedao_check:false,content:"发生坠床",is_status:2}],
785
       page:1,
789
       page:1,
786
       limit:10,
790
       limit:10,
787
       total:0,
791
       total:0,
817
       id:0,
821
       id:0,
818
       index:0,
822
       index:0,
819
       fallassesment_id:0,
823
       fallassesment_id:0,
820
-      ids:[]
824
+      ids:[],
825
+      patients:{},
826
+      time_now:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
827
+      printList:[]
821
     }
828
     }
822
   },
829
   },
823
   methods:{
830
   methods:{
837
         
844
         
838
         if(this.ids.length==0){
845
         if(this.ids.length==0){
839
           this.$message('请选择需要打印的记录')
846
           this.$message('请选择需要打印的记录')
847
+          return
840
         }
848
         }
841
          var params = {
849
          var params = {
842
           ids:this.ids.join(","),
850
           ids:this.ids.join(","),
851
+          patient_id:this.$route.query.patient_id,
843
          }
852
          }
844
          console.log("params----",params)
853
          console.log("params----",params)
845
-        getPatientFallaessmentList(params).then(response=>{
846
-
854
+        getPatientFallaessmentListByIds(params).then(response=>{
855
+          if(response.data.state ==1){
856
+            var list = response.data.data.list
857
+            this.patients = response.data.data.patients
858
+            for(let i=0;i<list.length;i++){
859
+            list[i].content =""
860
+            if(list[i].is_check_eight ==1){
861
+              list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
862
+            }
863
+            if(list[i].is_check_night == 1){
864
+              list[i].content =  list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
865
+            }
866
+            if(list[i].is_check_ten == 1){
867
+              list[i].content =  list[i].content + "及时给予便器,床上(边)大小便"
868
+            }
869
+            if(list[i].is_check_eleven == 1){
870
+              list[i].content =  list[i].content + "使用床档"
871
+            }
872
+            if(list[i].is_check_twelve == 1){
873
+              list[i].content =  list[i].content + "使用约束带"
874
+            }
875
+            if(list[i].is_check_thirteen == 1){
876
+              list[i].content =  list[i].content + "使用助行器"
877
+            }
878
+            if(list[i].is_check_fourteen == 1){
879
+              list[i].content =  list[i].content + "需要时协助病人上、下床"
880
+            }
881
+            if(list[i].is_check_fourteen == 1){
882
+              list[i].content =  list[i].content + "协助病人如厕"
883
+            }
884
+            if(list[i].is_check_sixteen == 1){
885
+              list[i].content =  list[i].content + "避免地面积水、湿滑"
886
+            }
887
+            if(list[i].is_check_seventeen == 1){
888
+              list[i].content =  list[i].content + "消除床旁及通道障碍"
889
+            }
890
+            if(list[i].is_check_eighteen == 1){
891
+              list[i].content =  list[i].content + "病床调至合适高度"
892
+            }
893
+            if(list[i].is_check_nineteen == 1){
894
+              list[i].content =  list[i].content + "及时锁上病床及轮椅的轮轴"
895
+            }
896
+           }
897
+            console.log("list=-====",list)
898
+            this.multipleSelection =list
899
+            this.dialogVisible = true
900
+          }
847
        })
901
        })
848
       }
902
       }
849
-    
850
-      if(this.multipleSelection.length==0){
851
-        this.$message('请选择需要打印的记录')
852
-      }else{
853
-        if(ids==1){
854
-          this.dialogVisible=true
855
-        }else{
856
-          this.mingxi_dialogVisible=true
903
+      if(ids ==2){
904
+        if(this.ids.length==0){
905
+          this.$message('请选择需要打印的记录')
906
+          return
857
         }
907
         }
908
+         var params = {
909
+          ids:this.ids.join(","),
910
+          patient_id:this.$route.query.patient_id,
911
+         }
912
+         console.log("params----",params)
913
+         getPatientFallaessmentListOne(params).then(response=>{
914
+          if(response.data.state ==1){
915
+            var list = response.data.data.list
916
+            this.patients = response.data.data.patients
917
+            for(let i=0;i<list.length;i++){
918
+              list[i].text =""
919
+              list[i].textOne = ""
920
+              
921
+              if(list[i].is_check == 1){
922
+                list[i].textOne= "告知病人及家属病人有跌倒的危险"
923
+              } 
858
 
924
 
859
-      }
925
+              if(list[i].is_check_one == 1){
926
+                list[i].textOne= list[i].textOne + "告知家属24小时陪伴,尤其在患者活动锻炼时,应有人陪伴,若离开请与值班护士联系"
927
+              } 
928
+
929
+              if(list[i].is_check_two == 1){
930
+                list[i].textOne= list[i].textOne + "告知病人及家属病人关于药物作用的注意事项"
931
+              } 
932
+
933
+              if(list[i].is_check_three == 1){
934
+                list[i].textOne= list[i].textOne + "穿合适的裤子,以免绊倒;穿防滑鞋"
935
+              } 
936
+
937
+              if(list[i].is_check_five == 1){
938
+                list[i].textOne= list[i].textOne + "如出现双眼发黑、下肢无力、行走不稳和不能移动时,立即原地坐/蹲下或靠墙,呼叫他人帮助"
939
+              } 
940
+
941
+              if(list[i].is_check_six == 1){
942
+                list[i].textOne= list[i].textOne + "指导病人使用病房及卫生间扶手"
943
+              } 
944
+
945
+              if(list[i].is_check_seven == 1){
946
+                list[i].textOne= list[i].textOne + "其他有关告知"
947
+              } 
948
+
949
+              if(list[i].is_check_four == 1){
950
+                list[i].textOne= list[i].textOne + " 告知患者改变体位欲活动时应遵循“三步曲”,即平卧30秒→双腿下垂30秒→行走,避免突然改变体位,引起体位性低血压,特别是夜间"
951
+              } 
952
+
953
+              if(list[i].is_check_eight ==1){
954
+                list[i].text = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
955
+              }
956
+              if(list[i].is_check_night == 1){
957
+                list[i].text =  list[i].text + "呼叫器及用物放置病人易取处,教会使用呼叫器"
958
+              }
959
+              if(list[i].is_check_ten == 1){
960
+                list[i].text =  list[i].text + "及时给予便器,床上(边)大小便"
961
+              }
962
+              if(list[i].is_check_eleven == 1){
963
+                list[i].text =  list[i].text + "使用床档"
964
+              }
965
+              if(list[i].is_check_twelve == 1){
966
+                list[i].text =  list[i].text + "使用约束带"
967
+              }
968
+              if(list[i].is_check_thirteen == 1){
969
+                list[i].text =  list[i].text + "使用助行器"
970
+              }
971
+              if(list[i].is_check_fourteen == 1){
972
+                list[i].text =  list[i].text + "需要时协助病人上、下床"
973
+              }
974
+              if(list[i].is_check_fourteen == 1){
975
+                list[i].text =  list[i].text + "协助病人如厕"
976
+              }
977
+              if(list[i].is_check_sixteen == 1){
978
+                list[i].text =  list[i].text + "避免地面积水、湿滑"
979
+              }
980
+              if(list[i].is_check_seventeen == 1){
981
+                list[i].text =  list[i].text + "消除床旁及通道障碍"
982
+              }
983
+              if(list[i].is_check_eighteen == 1){
984
+                list[i].text =  list[i].text + "病床调至合适高度"
985
+              }
986
+              if(list[i].is_check_nineteen == 1){
987
+                list[i].text =  list[i].text + "及时锁上病床及轮椅的轮轴"
988
+              }
989
+
990
+
991
+              if(list[i]&&list[i].content!=undefined){
992
+                var arr = JSON.parse(list[i].content)
993
+                this.nianlin = []
994
+                this.nianlin = arr
995
+            }
996
+
997
+            if(list[i]&&list[i].content_one!=undefined){
998
+              var arr = JSON.parse(list[i].content_one)
999
+              this.jiwang = []
1000
+              this.jiwang = arr
1001
+            }
1002
+
1003
+            if(list[i]&&list[i].content_two!=undefined){
1004
+              var arr = JSON.parse(list[i].content_two)
1005
+              this.yishizt = []
1006
+              this.yishizt = arr
1007
+            }
1008
+
1009
+            if(list[i]&&list[i].content_three!=undefined){
1010
+              var arr = JSON.parse(list[i].content_three)
1011
+              this.ganguan = []
1012
+              this.ganguan = arr
1013
+            }
1014
+
1015
+
1016
+            if(list[i]&&list[i].content_four!=undefined){
1017
+              var arr = JSON.parse(list[i].content_four)
1018
+              this.shentizk = []
1019
+              this.shentizk = arr
1020
+            }
1021
+
1022
+            if(list[i]&&list[i].content_five!=undefined){
1023
+              var arr = JSON.parse(list[i].content_five)
1024
+              this.syyaowu = []
1025
+              this.syyaowu = arr
1026
+            }
1027
+
1028
+            if(list[i]&&list[i].content_six!=undefined){
1029
+              var arr = JSON.parse(list[i].content_six)
1030
+              this.paixie = []
1031
+              this.paixie = arr
1032
+            }
1033
+
1034
+            if(list[i]&&list[i].content_seven!=undefined){
1035
+              var arr = JSON.parse(list[i].content_seven)
1036
+              this.zilinl = []
1037
+              this.zilinl = arr
1038
+            }
1039
+
1040
+
1041
+            if(list[i]&&list[i].content_eight!=undefined){
1042
+              var arr = JSON.parse(list[i].content_eight)
1043
+              this.xiaoguo = []
1044
+              this.xiaoguo = arr
1045
+            }
1046
+
1047
+            if(list[i]&&list[i].content_night!=undefined){
1048
+              var arr = JSON.parse(list[i].content_night)
1049
+              this.touxidiedao = []
1050
+              this.touxidiedao = arr
1051
+            }
1052
+
1053
+            if(list[i]&&list[i].content_add!=undefined){
1054
+              var arr = JSON.parse(list[i].content_add)
1055
+              this.list = []
1056
+              this.list = arr
1057
+            }
1058
+
1059
+            if(list[i]&&list[i].content_add_one!=undefined){
1060
+              var arr = JSON.parse(list[i].content_add_one)
1061
+              this.listOne = []
1062
+              this.listOne = arr
1063
+            }
1064
+
1065
+
1066
+            this.printList =list
1067
+            this.mingxi_dialogVisible = true
1068
+          }
1069
+         }
1070
+        })
1071
+     }
860
     },
1072
     },
861
     print_pingfen(ids){
1073
     print_pingfen(ids){
862
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
1074
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
1059
             if(patientFallsessment.is_check_nineteen ==2){
1271
             if(patientFallsessment.is_check_nineteen ==2){
1060
               this.is_check_nineteen =false
1272
               this.is_check_nineteen =false
1061
             }
1273
             }
1062
-         
1063
-         
1064
-            if(patientFallsessment.PatientFallassessmentAge!=null && patientFallsessment.PatientFallassessmentAge.length>0){
1065
-              for(let i=0;i<patientFallsessment.PatientFallassessmentAge.length>0;i++){
1066
-               for(let j=0;j<this.nianlin.length;j++){
1067
-                  if(patientFallsessment.PatientFallassessmentAge[i].content == this.nianlin[j].content){
1068
-                    this.nianlin[j].id = patientFallsessment.PatientFallassessmentAge[i].id
1069
-                    if(patientFallsessment.PatientFallassessmentAge[i].is_check_status == 2){
1070
-                      this.nianlin[j].age_check = false
1071
-                     
1072
-                    }
1073
-                    if(patientFallsessment.PatientFallassessmentAge[i].is_check_status == 1){
1074
-                      this.nianlin[j].age_check = true
1075
-                    }
1076
-                  }
1077
-               }
1078
-              }
1079
-                
1080
-               if(patientFallsessment.XtPatientFallassessmentHistory!=null && patientFallsessment.XtPatientFallassessmentHistory.length>0){
1081
-                  
1082
-                 for(let i=0;i<patientFallsessment.XtPatientFallassessmentHistory.length;i++){
1083
-                 
1084
-                  for(let j=0;j<this.jiwang.length;j++){
1085
-                    this.jiwang[j].id =patientFallsessment.XtPatientFallassessmentHistory[i].id
1086
-                    if(patientFallsessment.XtPatientFallassessmentHistory[i].content == this.jiwang[j].content){
1087
-                      if(patientFallsessment.XtPatientFallassessmentHistory[i].is_check_status == 2){
1088
-                        this.jiwang[j].jiwang_check = false
1089
-                      }
1090
-                      if(patientFallsessment.XtPatientFallassessmentHistory[i].is_check_status == 1){
1091
-                        this.jiwang[j].jiwang_check = true
1092
-                      }
1093
-                    }
1094
-                  }
1095
-
1096
-                 }
1097
-               }
1098
-               
1099
-            
1100
-               if(patientFallsessment.XtPatientFallassessmentRealize!=null && patientFallsessment.XtPatientFallassessmentRealize.length>0){
1101
-                 for(let i=0;i<patientFallsessment.XtPatientFallassessmentRealize.length;i++){
1102
-                  for(let j=0;j<this.yishizt.length;j++){
1103
-                    this.yishizt[j].id =patientFallsessment.XtPatientFallassessmentRealize[i].id
1104
-                    if(patientFallsessment.XtPatientFallassessmentRealize[i].content == this.yishizt[j].content){
1105
-                      if(patientFallsessment.XtPatientFallassessmentRealize[i].is_check_status == 2){
1106
-                        this.yishizt[j].yishizt_check = false
1107
-                      }
1108
-                      if(patientFallsessment.XtPatientFallassessmentRealize[i].is_check_status == 1){
1109
-                        this.yishizt[j].yishizt_check = true
1110
-                      }
1111
-                    }
1112
-                  }
1113
-                 }
1114
-               }
1115
-               
1116
-               if(patientFallsessment.XtPatientFallassessmentOrgan!=null && patientFallsessment.XtPatientFallassessmentOrgan.length>0){
1117
-                 for(let i=0;i<patientFallsessment.XtPatientFallassessmentOrgan.length;i++){
1118
-                  for(let j=0;j<this.ganguan.length;j++){
1119
-                    this.ganguan[j].id =patientFallsessment.XtPatientFallassessmentOrgan[i].id
1120
-                   if(patientFallsessment.XtPatientFallassessmentOrgan[i].content == this.ganguan[j].content){
1121
-                      if(patientFallsessment.XtPatientFallassessmentOrgan[i].is_check_status == 2){
1122
-                        this.ganguan[j].ganguan_check = false
1123
-                      }
1124
-                      if(patientFallsessment.XtPatientFallassessmentOrgan[i].is_check_status == 1){
1125
-                        this.ganguan[j].ganguan_check = true
1126
-                      }
1127
-                    }
1128
-                  }
1129
-                 }
1130
-               }
1131
-              
1132
-               if(patientFallsessment.XtPatientFallassessmentBody!=null&&patientFallsessment.XtPatientFallassessmentBody.length>0){
1133
-                   for(let i=0;i<patientFallsessment.XtPatientFallassessmentBody.length;i++){
1134
-                      for(let j=0;j<this.shentizk.length;j++){
1135
-                        this.shentizk[j].id =patientFallsessment.XtPatientFallassessmentBody[i].id
1136
-                        if(patientFallsessment.XtPatientFallassessmentBody[i].content == this.shentizk[j].content){
1137
-                          if(patientFallsessment.XtPatientFallassessmentBody[i].is_check_status == 2){
1138
-                            this.shentizk[j].shentizk_check = false
1139
-                          }
1140
-                          if(patientFallsessment.XtPatientFallassessmentBody[i].is_check_status == 1){
1141
-                            this.shentizk[j].shentizk_check = true
1142
-                          }
1143
-                        }
1144
-                     }
1145
-                   }
1146
-               }
1147
-               
1148
-               if(patientFallsessment.XtPatientFallassessmentMedical!=null && patientFallsessment.XtPatientFallassessmentMedical.length>0){
1149
-                 for(let i=0;i<patientFallsessment.XtPatientFallassessmentMedical.length;i++){
1150
-                      for(let j=0;j<this.syyaowu.length;j++){
1151
-                        this.syyaowu[j].id =patientFallsessment.XtPatientFallassessmentMedical[i].id
1152
-                        if(patientFallsessment.XtPatientFallassessmentMedical[i].content == this.syyaowu[j].content){
1153
-                          if(patientFallsessment.XtPatientFallassessmentMedical[i].is_check_status == 2){
1154
-                            this.syyaowu[j].syyaowu_check = false
1155
-                          }
1156
-                          if(patientFallsessment.XtPatientFallassessmentMedical[i].is_check_status == 1){
1157
-                            this.syyaowu[j].syyaowu_check = true
1158
-                          }
1159
-                        }
1160
-                    }
1161
-                 }
1162
-               }
1163
-               
1164
-               
1165
-               if(patientFallsessment.XtPatientFallassessmentExcrete!=null && patientFallsessment.XtPatientFallassessmentExcrete.length>0){
1166
-                  for(let i=0;i<patientFallsessment.XtPatientFallassessmentExcrete.length;i++){
1167
-                        for(let j=0;j<this.paixie.length;j++){
1168
-                          this.paixie[j].id =patientFallsessment.XtPatientFallassessmentExcrete[i].id
1169
-                          if(patientFallsessment.XtPatientFallassessmentExcrete[i].content == this.paixie[j].content){
1170
-                            if(patientFallsessment.XtPatientFallassessmentExcrete[i].is_check_status == 2){
1171
-                              this.paixie[j].paixie_check = false
1172
-                            }
1173
-                            if(patientFallsessment.XtPatientFallassessmentExcrete[i].is_check_status == 1){
1174
-                              this.paixie[j].paixie_check = true
1175
-                            }
1176
-                          }
1177
-                    }
1178
-                  }
1179
-               }
1180
 
1274
 
1181
-            
1182
-              if(patientFallsessment.XtPatientFallassessmentCare!=null && patientFallsessment.XtPatientFallassessmentCare.length>0){
1183
-                for(let i=0;i<patientFallsessment.XtPatientFallassessmentCare.length;i++){
1184
-                    for(let j=0;j<this.zilinl.length;j++){
1185
-                      this.zilinl[j].id =patientFallsessment.XtPatientFallassessmentCare[i].id
1186
-                      if(patientFallsessment.XtPatientFallassessmentCare[i].content == this.zilinl[j].content){
1187
-                        if(patientFallsessment.XtPatientFallassessmentCare[i].is_check_status == 2){
1188
-                          this.zilinl[j].zilinl_check = false
1189
-                        }
1190
-                        if(patientFallsessment.XtPatientFallassessmentCare[i].is_check_status == 1){
1191
-                          this.zilinl[j].zilinl_check = true
1192
-                        }
1193
-                      }
1194
-                  }
1195
-
1196
-                }
1197
-              }
1198
-             
1199
-                
1200
-              if(patientFallsessment.XtPatientFallassessmentFall!=null &&patientFallsessment.XtPatientFallassessmentFall.length>0){
1201
-                 for(let i=0;i<patientFallsessment.XtPatientFallassessmentFall.length;i++){
1202
-                     for(let j=0;j<this.touxidiedao.length;j++){
1203
-                      this.touxidiedao[j].id =patientFallsessment.XtPatientFallassessmentFall[i].id
1204
-                      if(patientFallsessment.XtPatientFallassessmentFall[i].content == this.touxidiedao[j].content){
1205
-                        if(patientFallsessment.XtPatientFallassessmentFall[i].is_check_status == 2){
1206
-                          this.touxidiedao[j].touxidiedao_check = false
1207
-                        }
1208
-                        if(patientFallsessment.XtPatientFallassessmentFall[i].is_check_status == 1){
1209
-                          this.touxidiedao[j].touxidiedao_check = true
1210
-                        }
1211
-                      }
1212
-                   }
1213
-                 }
1214
-              }
1215
 
1275
 
1216
-              if(patientFallsessment.PatientFallassessmentAdd!=null && patientFallsessment.PatientFallassessmentAdd.length>0){
1217
-                 for(let i=0;i<patientFallsessment.PatientFallassessmentAdd.length;i++){
1218
-                    for(let j=0;j<this.list.length;j++){
1219
-                      this.list[j].id =patientFallsessment.PatientFallassessmentAdd[i].id
1220
-                      if(patientFallsessment.PatientFallassessmentAdd[i].content == this.list[j].content){
1221
-                        if(patientFallsessment.PatientFallassessmentAdd[i].is_check_status == 2){
1222
-                          this.is_touxidiedao[j].is_content_check = false
1223
-                        }
1224
-                        if(patientFallsessment.PatientFallassessmentAdd[i].is_check_status == 1){
1225
-                          this.is_touxidiedao[j].is_content_check = true
1226
-                        }
1227
-                      }
1228
-                   }
1229
-                 }
1230
-              }
1276
+            if(patientFallsessment&&patientFallsessment.content!=undefined){
1277
+              var arr = JSON.parse(patientFallsessment.content)
1278
+              this.nianlin = []
1279
+              this.nianlin = arr
1280
+            }
1231
 
1281
 
1232
-              if(patientFallsessment.PatientFallassessmentAddCopy!=null && patientFallsessment.PatientFallassessmentAddCopy.length>0){
1233
-                for(let i=0;i<patientFallsessment.PatientFallassessmentAddCopy.length;i++){
1234
-                   for(let j=0;j<this.listOne.length;j++){
1235
-                      this.listOne[j].id =patientFallsessment.PatientFallassessmentAddCopy[i].id
1236
-                      if(patientFallsessment.PatientFallassessmentAddCopy[i].content == this.listOne[j].content){
1237
-                        if(patientFallsessment.PatientFallassessmentAddCopy[i].is_check_status == 2){
1238
-                          this.is_touxidiedao[j].is_content_check_one = false
1239
-                        }
1240
-                        if(patientFallsessment.PatientFallassessmentAddCopy[i].is_check_status == 1){
1241
-                          this.is_touxidiedao[j].is_content_check_one = true
1242
-                        }
1243
-                      }
1244
-                   }
1245
-                }
1246
-              }
1282
+            if(patientFallsessment&&patientFallsessment.content_one!=undefined){
1283
+              var arr = JSON.parse(patientFallsessment.content_one)
1284
+              this.jiwang = []
1285
+              this.jiwang = arr
1286
+            }
1247
 
1287
 
1288
+            if(patientFallsessment&&patientFallsessment.content_two!=undefined){
1289
+              var arr = JSON.parse(patientFallsessment.content_two)
1290
+              this.yishizt = []
1291
+              this.yishizt = arr
1292
+            }
1248
 
1293
 
1249
-              if(patientFallsessment.XtPatientFallassessmentPrevent!=null && patientFallsessment.XtPatientFallassessmentPrevent.length>0){
1250
-                for(let i=0;i<patientFallsessment.XtPatientFallassessmentPrevent.length;i++){
1251
-                   for(let j=0;j<this.xiaoguo.length;j++){
1252
-                      this.xiaoguo[j].id =patientFallsessment.XtPatientFallassessmentPrevent[i].id
1253
-                      if(patientFallsessment.XtPatientFallassessmentPrevent[i].content == this.xiaoguo[j].content){
1254
-                        if(patientFallsessment.XtPatientFallassessmentPrevent[i].is_check_status == 2){
1255
-                          this.xiaoguo[j].xiaoguo_check = false
1256
-                        }
1257
-                        if(patientFallsessment.XtPatientFallassessmentPrevent[i].is_check_status == 1){
1258
-                          this.xiaoguo[j].xiaoguo_check = true
1259
-                        }
1260
-                      }
1261
-                   }
1262
-                }
1263
-              }
1264
-             
1265
-             
1294
+            if(patientFallsessment&&patientFallsessment.content_three!=undefined){
1295
+              var arr = JSON.parse(patientFallsessment.content_three)
1296
+              this.ganguan = []
1297
+              this.ganguan = arr
1298
+            }
1266
 
1299
 
1267
-               
1268
 
1300
 
1269
-             
1270
-             }
1271
-            
1272
-            console.log("年龄2323232",this.nianlin)
1301
+            if(patientFallsessment&&patientFallsessment.content_four!=undefined){
1302
+              var arr = JSON.parse(patientFallsessment.content_four)
1303
+              this.shentizk = []
1304
+              this.shentizk = arr
1305
+            }
1306
+
1307
+            if(patientFallsessment&&patientFallsessment.content_five!=undefined){
1308
+              var arr = JSON.parse(patientFallsessment.content_five)
1309
+              this.syyaowu = []
1310
+              this.syyaowu = arr
1311
+            }
1312
+
1313
+            if(patientFallsessment&&patientFallsessment.content_six!=undefined){
1314
+              var arr = JSON.parse(patientFallsessment.content_six)
1315
+              this.paixie = []
1316
+              this.paixie = arr
1317
+            }
1318
+
1319
+            if(patientFallsessment&&patientFallsessment.content_seven!=undefined){
1320
+              var arr = JSON.parse(patientFallsessment.content_seven)
1321
+              this.zilinl = []
1322
+              this.zilinl = arr
1323
+            }
1324
+
1325
+
1326
+            if(patientFallsessment&&patientFallsessment.content_eight!=undefined){
1327
+              var arr = JSON.parse(patientFallsessment.content_eight)
1328
+              this.xiaoguo = []
1329
+              this.xiaoguo = arr
1330
+            }
1331
+
1332
+            if(patientFallsessment&&patientFallsessment.content_night!=undefined){
1333
+              var arr = JSON.parse(patientFallsessment.content_night)
1334
+              this.touxidiedao = []
1335
+              this.touxidiedao = arr
1336
+            }
1337
+
1338
+            if(patientFallsessment&&patientFallsessment.content_add!=undefined){
1339
+              var arr = JSON.parse(patientFallsessment.content_add)
1340
+              this.list = []
1341
+              this.list = arr
1342
+            }
1343
+
1344
+            if(patientFallsessment&&patientFallsessment.content_add_one!=undefined){
1345
+              var arr = JSON.parse(patientFallsessment.content_add_one)
1346
+              this.listOne = []
1347
+              this.listOne = arr
1348
+            }
1349
+   
1350
+            console.log("透析跌倒",this.touxidiedao)
1351
+            console.log("xiaoguo",this.xiaoguo)
1273
             this.bianji_dialogVisible=true
1352
             this.bianji_dialogVisible=true
1274
             console.log('1111',row);
1353
             console.log('1111',row);
1275
           }
1354
           }
1355
+      
1276
       })
1356
       })
1277
     
1357
     
1278
     },
1358
     },
1307
       this.add_centerDialogVisible_one = true
1387
       this.add_centerDialogVisible_one = true
1308
     },
1388
     },
1309
     add_tumble_one(){
1389
     add_tumble_one(){
1310
-      var obj = {is_content_check_one:false,content:"",is_status:2}
1311
-      obj.content = this.contentOne
1390
+      var obj = {is_content_check_one:false,contentOne:"",is_status:2}
1391
+      obj.contentOne = this.contentOne
1312
       this.listOne.push(obj)
1392
       this.listOne.push(obj)
1313
     
1393
     
1314
       this.add_centerDialogVisible_one = false
1394
       this.add_centerDialogVisible_one = false
1336
       getPatientFallsessmentList(params).then(response=>{
1416
       getPatientFallsessmentList(params).then(response=>{
1337
          if(response.data.state ==1){
1417
          if(response.data.state ==1){
1338
            var list =  response.data.data.list
1418
            var list =  response.data.data.list
1339
-           console.log("list=========",list)
1340
-          
1341
-           for(let i=0;i<list.length;i++){
1342
-            list[i].content =""
1343
-            if(list[i].is_check_eight ==1){
1344
-              list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
1345
-            }
1346
-            if(list[i].is_check_night == 1){
1347
-              list[i].content =  list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
1348
-            }
1349
-            if(list[i].is_check_ten == 1){
1350
-              list[i].content =  list[i].content + "及时给予便器,床上(边)大小便"
1351
-            }
1352
-            if(list[i].is_check_eleven == 1){
1353
-              list[i].content =  list[i].content + "使用床档"
1354
-            }
1355
-            if(list[i].is_check_twelve == 1){
1356
-              list[i].content =  list[i].content + "使用约束带"
1357
-            }
1358
-            if(list[i].is_check_thirteen == 1){
1359
-              list[i].content =  list[i].content + "使用助行器"
1360
-            }
1361
-            if(list[i].is_check_fourteen == 1){
1362
-              list[i].content =  list[i].content + "需要时协助病人上、下床"
1363
-            }
1364
-            if(list[i].is_check_fourteen == 1){
1365
-              list[i].content =  list[i].content + "协助病人如厕"
1366
-            }
1367
-            if(list[i].is_check_sixteen == 1){
1368
-              list[i].content =  list[i].content + "避免地面积水、湿滑"
1369
-            }
1370
-            if(list[i].is_check_seventeen == 1){
1371
-              list[i].content =  list[i].content + "消除床旁及通道障碍"
1372
-            }
1373
-            if(list[i].is_check_eighteen == 1){
1374
-              list[i].content =  list[i].content + "病床调至合适高度"
1375
-            }
1376
-            if(list[i].is_check_nineteen == 1){
1377
-              list[i].content =  list[i].content + "及时锁上病床及轮椅的轮轴"
1419
+           
1420
+           if(list!=null && list.length >0){
1421
+            for(let i=0;i<list.length;i++){
1422
+              list[i].content =""
1423
+              if(list[i].is_check_eight ==1){
1424
+                list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
1425
+              }
1426
+              if(list[i].is_check_night == 1){
1427
+                list[i].content =  list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
1428
+              }
1429
+              if(list[i].is_check_ten == 1){
1430
+                list[i].content =  list[i].content + "及时给予便器,床上(边)大小便"
1431
+              }
1432
+              if(list[i].is_check_eleven == 1){
1433
+                list[i].content =  list[i].content + "使用床档"
1434
+              }
1435
+              if(list[i].is_check_twelve == 1){
1436
+                list[i].content =  list[i].content + "使用约束带"
1437
+              }
1438
+              if(list[i].is_check_thirteen == 1){
1439
+                list[i].content =  list[i].content + "使用助行器"
1440
+              }
1441
+              if(list[i].is_check_fourteen == 1){
1442
+                list[i].content =  list[i].content + "需要时协助病人上、下床"
1443
+              }
1444
+              if(list[i].is_check_fourteen == 1){
1445
+                list[i].content =  list[i].content + "协助病人如厕"
1446
+              }
1447
+              if(list[i].is_check_sixteen == 1){
1448
+                list[i].content =  list[i].content + "避免地面积水、湿滑"
1449
+              }
1450
+              if(list[i].is_check_seventeen == 1){
1451
+                list[i].content =  list[i].content + "消除床旁及通道障碍"
1452
+              }
1453
+              if(list[i].is_check_eighteen == 1){
1454
+                list[i].content =  list[i].content + "病床调至合适高度"
1455
+              }
1456
+              if(list[i].is_check_nineteen == 1){
1457
+                list[i].content =  list[i].content + "及时锁上病床及轮椅的轮轴"
1458
+              }
1459
+
1460
+            
1378
             }
1461
             }
1462
+
1463
+             
1379
            }
1464
            }
1465
+        
1380
           
1466
           
1381
           
1467
           
1382
            this.tableData =  list
1468
            this.tableData =  list
1579
         var record_date = this.record_date
1665
         var record_date = this.record_date
1580
         var ping_date = this.ping_date
1666
         var ping_date = this.ping_date
1581
 
1667
 
1582
-        if(this.nianlin!=null && this.nianlin.length >0){
1583
-          for(let i=0;i<this.nianlin.length;i++){
1584
-            if(this.nianlin[i].age_check == true){
1585
-                this.nianlin[i].is_status =1
1586
-            }
1587
-            if(this.nianlin[i].age_check == false){
1588
-                this.nianlin[i].is_status =2
1589
-            }
1590
-          }
1591
-        }
1592
-
1593
-        if(this.jiwang!=null && this.jiwang.length >0){
1594
-          for(let i=0;i<this.jiwang.length;i++){
1595
-            if(this.jiwang[i].jiwang_check == true){
1596
-                this.jiwang[i].is_status =1
1597
-            }
1598
-            if(this.jiwang[i].jiwang_check == false){
1599
-                this.jiwang[i].is_status =2
1600
-            }
1601
-          }
1602
-        }
1603
-
1604
-        if(this.yishizt!=null && this.yishizt.length >0){
1605
-          for(let i=0;i<this.yishizt.length;i++){
1606
-            if(this.yishizt[i].yishizt_check == true){
1607
-                this.yishizt[i].is_status =1
1608
-            }
1609
-            if(this.yishizt[i].yishizt_check == false){
1610
-                this.yishizt[i].is_status =2
1611
-            }
1612
-          }
1613
-        }
1614
-
1615
-        if(this.yishizt!=null && this.yishizt.length >0){
1616
-          for(let i=0;i<this.yishizt.length;i++){
1617
-            if(this.yishizt[i].yishizt_check == true){
1618
-                this.yishizt[i].is_status =1
1619
-            }
1620
-            if(this.yishizt[i].yishizt_check == false){
1621
-                this.yishizt[i].is_status =2
1622
-            }
1623
-          }
1624
-        }
1625
-
1626
-        if(this.ganguan!=null && this.ganguan.length >0){
1627
-          for(let i=0;i<this.ganguan.length;i++){
1628
-            if(this.ganguan[i].ganguan_check == true){
1629
-                this.ganguan[i].is_status =1
1630
-            }
1631
-            if(this.ganguan[i].ganguan_check == false){
1632
-                this.ganguan[i].is_status =2
1633
-            }
1634
-          }
1635
-        }
1636
-
1637
-        if(this.shentizk!=null && this.shentizk.length >0){
1638
-          for(let i=0;i<this.shentizk.length;i++){
1639
-            if(this.shentizk[i].shentizk_check == true){
1640
-                this.shentizk[i].is_status =1
1641
-            }
1642
-            if(this.shentizk[i].shentizk_check == false){
1643
-                this.shentizk[i].is_status =2
1644
-            }
1645
-          }
1646
-        }
1647
-
1648
-        if(this.syyaowu!=null && this.syyaowu.length >0){
1649
-          for(let i=0;i<this.syyaowu.length;i++){
1650
-            if(this.syyaowu[i].syyaowu_check == true){
1651
-                this.syyaowu[i].is_status =1
1652
-            }
1653
-            if(this.syyaowu[i].syyaowu_check == false){
1654
-                this.syyaowu[i].is_status =2
1655
-            }
1656
-          }
1657
-        }
1658
-
1659
-        if(this.paixie!=null && this.paixie.length >0){
1660
-          for(let i=0;i<this.paixie.length;i++){
1661
-            if(this.paixie[i].paixie_check == true){
1662
-                this.paixie[i].is_status =1
1663
-            }
1664
-            if(this.paixie[i].paixie_check == false){
1665
-                this.paixie[i].is_status =2
1666
-            }
1667
-          }
1668
-        }
1669
-
1670
-        if(this.zilinl!=null && this.zilinl.length >0){
1671
-          for(let i=0;i<this.zilinl.length;i++){
1672
-            if(this.zilinl[i].zilinl_check == true){
1673
-                this.zilinl[i].is_status =1
1674
-            }
1675
-            if(this.zilinl[i].zilinl_check == false){
1676
-                this.zilinl[i].is_status =2
1677
-            }
1678
-          }
1679
-        }
1680
-
1681
-        if(this.xiaoguo!=null && this.xiaoguo.length >0){
1682
-          for(let i=0;i<this.xiaoguo.length;i++){
1683
-            if(this.xiaoguo[i].xiaoguo_check == true){
1684
-                this.xiaoguo[i].is_status =1
1685
-            }
1686
-            if(this.xiaoguo[i].xiaoguo_check == false){
1687
-                this.xiaoguo[i].is_status =2
1688
-            }
1689
-          }
1690
-        }
1691
-
1692
-        if(this.touxidiedao!=null && this.touxidiedao.length >0){
1693
-          for(let i=0;i<this.touxidiedao.length;i++){
1694
-            if(this.touxidiedao[i].touxidiedao_check == true){
1695
-                this.touxidiedao[i].is_status =1
1696
-            }
1697
-            if(this.touxidiedao[i].touxidiedao_check == false){
1698
-                this.touxidiedao[i].is_status =2
1699
-            }
1700
-          }
1701
-        }
1702
-
1703
-        if(this.list!=null && this.list.length >0){
1704
-          for(let i=0;i<this.list.length;i++){
1705
-            if(this.list[i].is_content_check == true){
1706
-                this.list[i].is_status =1
1707
-            }
1708
-            if(this.list[i].is_content_check == false){
1709
-                this.list[i].is_status =2
1710
-            }
1711
-          }
1712
-        }
1713
-
1714
-        if(this.listOne!=null && this.listOne.length >0){
1715
-          for(let i=0;i<this.listOne.length;i++){
1716
-            if(this.listOne[i].is_content_check_one == true){
1717
-                this.listOne[i].is_status =1
1718
-            }
1719
-            if(this.listOne[i].is_content_check_one == false){
1720
-                this.listOne[i].is_status =2
1721
-            }
1722
-          }
1723
-        }
1724
         var params = {
1668
         var params = {
1725
-        is_age:this.nianlin,//年龄
1726
-        is_jiwang:this.jiwang,//既往史
1727
-        is_yishizt:this.yishizt,//意识状态
1728
-        is_ganguan:this.ganguan,//感官
1729
-        is_shentizk:this.shentizk,// 身体状况
1730
-        is_syyaowu:this.syyaowu,//使用药物
1731
-        is_paixie:this.paixie,//排泄
1732
-        is_zilin:this.zilinl, //自理能力
1733
-        is_xiaoguo:this.xiaoguo,//预防效果
1734
-        is_touxidiedao:this.touxidiedao,//透析跌倒
1735
-        list:this.list,
1736
-        listOne:this.listOne,
1669
+        is_age:JSON.stringify(this.nianlin),//年龄
1670
+        is_jiwang:JSON.stringify(this.jiwang),//既往史
1671
+        is_yishizt:JSON.stringify(this.yishizt),//意识状态
1672
+        is_ganguan:JSON.stringify(this.ganguan),//感官
1673
+        is_shentizk:JSON.stringify(this.shentizk),// 身体状况
1674
+        is_syyaowu:JSON.stringify(this.syyaowu),//使用药物
1675
+        is_paixie:JSON.stringify(this.paixie),//排泄
1676
+        is_zilin:JSON.stringify(this.zilinl), //自理能力
1677
+        is_xiaoguo:JSON.stringify(this.xiaoguo),//预防效果
1678
+        is_touxidiedao:JSON.stringify(this.touxidiedao),//透析跌倒
1679
+        list:JSON.stringify(this.list),
1680
+        listOne:JSON.stringify(this.listOne),
1737
         record_date:record_date,
1681
         record_date:record_date,
1738
         ping_date:ping_date,
1682
         ping_date:ping_date,
1739
         admin_user_id:this.admin_user_id,
1683
         admin_user_id:this.admin_user_id,

+ 1 - 1
src/xt_pages/user/patients.vue View File

352
       
352
       
353
   
353
   
354
         <el-button type="primary" size="small" style="float:right" @click="toExport">导出</el-button>
354
         <el-button type="primary" size="small" style="float:right" @click="toExport">导出</el-button>
355
-        <el-button type="primary" size="small" style="float:right" @click="toExportOne">导出2</el-button>
355
+        <!-- <el-button type="primary" size="small" style="float:right" @click="toExportOne">导出2</el-button> -->
356
       </div>
356
       </div>
357
       <div  class="cell clearfix">
357
       <div  class="cell clearfix">
358
 
358