Przeglądaj źródła

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

陈少旭 1 rok temu
rodzic
commit
facd0ec11d
27 zmienionych plików z 3937 dodań i 1557 usunięć
  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 Wyświetl plik

@@ -143,3 +143,77 @@ export function getAllNurseList(params){
143 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 Wyświetl plik

@@ -77,7 +77,7 @@
77 77
         </div>
78 78
         <div>
79 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 81
           <el-table :data="tableData" v-loading="isLoadingTwo" border style="width: 100%"
82 82
                     :row-style="{ color: '#303133' }"
83 83
                     :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}">
@@ -854,6 +854,33 @@ export default {
854 854
           if(response.data.state ==1){
855 855
             var list = response.data.data.list
856 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 Wyświetl plik

@@ -63,7 +63,7 @@
63 63
             地址<span class="unile2"></span> 省(市)<span class="unile2"></span>路<span class="unile2"></span>号
64 64
           </div> -->
65 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 67
           </div>
68 68
           <!-- <div style="padding: 10px 5px">
69 69
             合并症或并发症 <span class="unile"></span>

+ 63 - 63
src/xt_pages/user/components/PatientSidebar.vue Wyświetl plik

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

+ 27 - 16
src/xt_pages/user/evaluationtool/Cathetershedding.vue Wyświetl plik

@@ -87,9 +87,9 @@
87 87
                           <el-select v-model="Dutynurse" placeholder="请选择" style="width:150px;">
88 88
                               <el-option
89 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 94
                               </el-option>
95 95
                           </el-select>
@@ -126,10 +126,11 @@
126 126
                             评估人签字:
127 127
                             <el-select v-model="appraiser" placeholder="请选择" style="width: 120px;">
128 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 134
                                 </el-option>
134 135
                             </el-select>
135 136
                         </p>
@@ -149,10 +150,10 @@
149 150
                             护士长签字:
150 151
                             <el-select v-model="hushi" placeholder="请选择" style="width: 120px;">
151 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 157
                                 </el-option>
157 158
                             </el-select>
158 159
                         </p>
@@ -183,7 +184,7 @@
183 184
 <script>
184 185
 import { uParseTime } from '@/utils/tools'
185 186
 import PatientSidebar from '../components/PatientSidebar.vue'
186
-import {savePatientHpressuresore} from '@/api/fallassement'
187
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
187 188
 export default {
188 189
   components:{
189 190
     PatientSidebar
@@ -205,14 +206,12 @@ export default {
205 206
       date:this.getTime(new Date()),
206 207
       Dutynurse:'',//责任护士
207 208
       // Dutynursearr:[],//责任护士数组
208
-      Dutynursearr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
209
+      Dutynursearr:[],
209 210
       appraiser:'',
210 211
       // optionsarr:[],
211
-      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
212 212
       jiashu_date:this.getTime(new Date()),//家属时间
213 213
       zhuanggui:'',//转归
214 214
       hushi:'',//护理
215
-      hushiarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],//护理
216 215
       hushi_date:this.getTime(new Date()),//护理时间
217 216
       cuoshi_show:[],//护理措施选中数组
218 217
       Patient_info:{name:'',dialysis_no:''},
@@ -243,6 +242,7 @@ export default {
243 242
   created(){
244 243
     const id = this.$route.params && this.$route.params.id
245 244
     this.patientID = parseInt(id)
245
+    this.getAllNurseList()
246 246
   },
247 247
   methods:{
248 248
     // 选中
@@ -291,8 +291,9 @@ export default {
291 291
       }
292 292
       savePatientHpressuresore(params).then(response =>{
293 293
         if(response.data.state == 1){
294
-          console.log('111111111',response.data.data);
294
+          
295 295
           const cath = response.data.data.pedFallssessment
296
+          console.log('111111111',JSON.parse(cath.text));
296 297
           this.$message({message:'保存成功',type:'success'})
297 298
           // if(cath.text !=''){
298 299
           //   const text = JSON.parse(cath.text)
@@ -345,6 +346,16 @@ export default {
345 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 360
   computed:{
350 361
     duct_Totalpoints(){

+ 18 - 18
src/xt_pages/user/evaluationtool/Fallassessment.vue Wyświetl plik

@@ -358,7 +358,7 @@
358 358
                                 <td>
359 359
                                   <div class="xiaojige">
360 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 362
                                     </label><br>
363 363
 
364 364
                                   </div>
@@ -581,9 +581,9 @@
581 581
       handleCheckedCitiesChange(e){
582 582
         console.log("eeeeeeeee",e)
583 583
         var ball = e.target.value
584
-        console.log("ball------------",ball)
584
+      
585 585
         var jiequ =(ball.split('(')[1].split('分')[0]) * 1
586
-        console.log("jiequ-----------",jiequ)
586
+      
587 587
         if(e.target.checked==true){
588 588
           this.tumble_Totalpoints=this.tumble_Totalpoints + jiequ
589 589
           return this.tumble_Totalpoints
@@ -606,8 +606,8 @@
606 606
         this.centerDialogVisibleOne = true
607 607
       },
608 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 611
         this.listOne.push(obj)
612 612
         this.centerDialogVisibleOne= false
613 613
       },
@@ -929,18 +929,18 @@
929 929
             }
930 930
          }
931 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 944
           record_date:record_date,
945 945
           ping_date:ping_date,
946 946
           admin_user_id:this.admin_user_id,
@@ -969,7 +969,7 @@
969 969
 
970 970
          }
971 971
          console.log("params",params)
972
-
972
+      
973 973
         saveFllassessmentList(params).then(response=>{
974 974
            if(response.data.state ==1){
975 975
              var patientFallassessment = response.data.data.patientFallassessment

+ 93 - 50
src/xt_pages/user/evaluationtool/Glasgow.vue Wyświetl plik

@@ -15,7 +15,7 @@
15 15
               </div>
16 16
               <div style="flex:1" v-if="Glas_baoxiao">
17 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 19
                 <el-button  @click="Glas_quxiao" >取消</el-button>
20 20
               </div>
21 21
 
@@ -97,14 +97,15 @@
97 97
                 <el-select v-model="Glas_pinggu" placeholder="请选择" style="width:120px;">
98 98
                     <el-option
99 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 104
                     </el-option>
105 105
                 </el-select>
106 106
               </div>
107 107
             </div>
108
+            <div id="ctrl-xgtlpic-mask2" class="readonly" data-text="图片操作的遮罩层" v-show="append2 == false"></div>
108 109
             <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
109 110
             <hr style=" background-color: #DCDFE6;margin-top: 20px; height: 1px;border: none;"/>
110 111
             <div class="shuoming">
@@ -270,10 +271,12 @@ export default {
270 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 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 275
       history_Glasgow:[],
275 276
 
276 277
       append:false,//显示遮罩层
278
+      append2:false,
279
+      add_open:1,//新增按钮控制条件
277 280
       Glasadd_show:true,//显示新增
278 281
       Glas_gzdayin:false,//显示编辑删除
279 282
       Glas_baoxiao:false,//显示保存
@@ -282,6 +285,7 @@ export default {
282 285
       Glas_pinggu:null,
283 286
       open_print:false,
284 287
       dele_id:'',
288
+      dele_id2:'',
285 289
       dele_dialogVisible:false,
286 290
       dayintime:this.getTime2(new Date()),
287 291
       glasgow_zong:0,
@@ -292,6 +296,7 @@ export default {
292 296
     const id = this.$route.params && this.$route.params.id
293 297
     this.patientID = parseInt(id)
294 298
     this.getlist()
299
+    this.getAllNurseList()
295 300
   },
296 301
   methods:{
297 302
     //睁眼
@@ -354,12 +359,19 @@ export default {
354 359
     },
355 360
     // 新增
356 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 377
     Glas_save(){
@@ -391,41 +403,22 @@ export default {
391 403
             if(response.data.state == 1){
392 404
               const Glasgow = response.data.data.pedFallssessment
393 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 422
         return this.history_Glasgow
430 423
       }
431 424
     },
@@ -482,10 +475,16 @@ export default {
482 475
       this.Glasadd_show=false
483 476
       this.cancel_num =1
484 477
       this.qufen = true
478
+      this.append2 = true
485 479
     },
486 480
     // 选中数据
487 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 488
       // if(this.cancel_num == 1){
490 489
       //   this.Glasadd_show = true
491 490
       //   this.Glas_gzdayin = true
@@ -497,12 +496,13 @@ export default {
497 496
         this.Glas_gzdayin = true
498 497
         this.Glas_baoxiao = false
499 498
         this.qufen = false
500
-        // this.append2 = false
499
+        this.append2 = false
501 500
       }
502 501
       getPedPatientFallAssessmentById(this.dele_id).then(response =>{
503 502
         if(response.data.state ==1){
504 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 506
           if(glasgow.text !=''){
507 507
             const text =JSON.parse(glasgow.text)
508 508
             for(let i in this.zhengyan){
@@ -566,6 +566,23 @@ export default {
566 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 588
       this.dele_dialogVisible=false
@@ -586,13 +603,14 @@ export default {
586 603
         this.Glasadd_show=true
587 604
         this.Glas_gzdayin=false
588 605
         this.Glas_baoxiao=false
589
-        
606
+        this.append2=false
590 607
       //  return this.append
591 608
       }else{
592 609
         this.Glasadd_show=true
593 610
         this.Glas_gzdayin=true
594 611
         this.Glas_baoxiao=false
595 612
         this.append=true
613
+        this.append2=false
596 614
       }
597 615
       for(let i in this.zhengyan){
598 616
         this.zhengyan[i].is_check = false
@@ -647,8 +665,8 @@ export default {
647 665
     // 评估护士
648 666
     getpinggr(id){
649 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,6 +680,9 @@ export default {
662 680
         }
663 681
       getPatientBedlist(params).then(response=>{
664 682
         if(response.data.state ==1){
683
+          if(this.history_Glasgow.length >0){
684
+            this.history_Glasgow.length =0
685
+          }
665 686
           var list = response.data.data.list
666 687
           list.forEach((item) => {
667 688
             if(item.text !=''){
@@ -681,7 +702,7 @@ export default {
681 702
           console.log('list',list);
682 703
         }
683 704
       })
684
-      return this.history_OH
705
+      return this.history_Glasgow
685 706
     },
686 707
     // 患者信息
687 708
     tranpatient(event){
@@ -691,6 +712,16 @@ export default {
691 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 726
   computed:{
696 727
     Glasgow_Totalpoints:{
@@ -764,6 +795,9 @@ export default {
764 795
 #ctrl-xgtlpic-mask.readonly {
765 796
   z-index: 2000;
766 797
 }
798
+#ctrl-xgtlpic-mask2.readonly {
799
+  z-index: 2000;
800
+}
767 801
 #ctrl-xgtlpic-mask {
768 802
     width: 85%;
769 803
     height: 100%;
@@ -773,6 +807,15 @@ export default {
773 807
     opacity: 0;
774 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 819
 .tables {
777 820
 
778 821
   thead th{

+ 63 - 20
src/xt_pages/user/evaluationtool/Muscleforce.vue Wyświetl plik

@@ -73,14 +73,15 @@
73 73
                   <el-select v-model="muscle_pinggu" placeholder="请选择" style="width:120px;">
74 74
                       <el-option
75 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 80
                       </el-option>
81 81
                   </el-select>
82 82
               </div>
83 83
             </div>
84
+            <div id="ctrl-xgtlpic-mask2" class="readonly" data-text="图片操作的遮罩层" v-show="append2 == false"></div>
84 85
             <div id="ctrl-xgtlpic-mask" class="readonly" data-text="图片操作的遮罩层" v-show="append == false"></div>
85 86
           </div>
86 87
           <!-- 虚线 -->
@@ -218,8 +219,9 @@ export default {
218 219
         {title:'5级',label:' 正常肌力',value:5,is_check:false,check:0},
219 220
       ],
220 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 225
       add_open:1,
224 226
       muscle_show:true,
225 227
       baocun_quxiao:false,
@@ -227,6 +229,7 @@ export default {
227 229
       cancel_num:0,//是否点击右侧
228 230
       open_print:false,
229 231
       dele_id:'',
232
+      dele_id2:'',
230 233
       dele_dialogVisible:false,
231 234
       content:"",
232 235
       text:"",
@@ -242,6 +245,7 @@ export default {
242 245
     const id = this.$route.params && this.$route.params.id
243 246
     this.patientID = parseInt(id)
244 247
     this.getlist()
248
+    this.getAllNurseList()
245 249
   },
246 250
   methods:{
247 251
     // 选择
@@ -269,9 +273,12 @@ export default {
269 273
         this.append=true
270 274
         this.baocun_quxiao=true
271 275
         this.muscle_show =false
276
+        this.muscle_gsdayin = false
272 277
         this.qufen =false
278
+        this.append2 = true
273 279
       }else{
274 280
         this.append = false
281
+        this.append2 = false
275 282
       }
276 283
     },
277 284
     // 保存
@@ -302,16 +309,18 @@ export default {
302 309
           if(response.data.state == 1){
303 310
             console.log('response',response.data.data);
304 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 324
             this.$message({message:'保存成功',type:'success'})
316 325
           }
317 326
         })
@@ -361,12 +370,18 @@ export default {
361 370
     },
362 371
     // 选中右侧数据
363 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 379
       this.muscle_show=true
366 380
       this.baocun_quxiao=false
367 381
       this.muscle_gsdayin=true
368 382
       this.qufen = true
369
-      getPedPatientFallAssessmentById(row.id).then(response =>{
383
+      this.append2 = false
384
+      getPedPatientFallAssessmentById(this.dele_id).then(response =>{
370 385
         if(response.data.state == 1){
371 386
           console.log('111111111',response.data.data.fallassessment); 
372 387
           const muscle = response.data.data.fallassessment
@@ -440,11 +455,13 @@ export default {
440 455
         this.muscle_show=true
441 456
         this.muscle_gsdayin=false
442 457
         this.append=false
458
+        this.append2=false
443 459
       }else{
444 460
         this.muscle_gsdayin=true
445 461
         this.muscle_show=true
446 462
         this.baocun_quxiao=false
447 463
         this.append=true
464
+        this.append2=false
448 465
       }
449 466
 
450 467
     },
@@ -455,6 +472,7 @@ export default {
455 472
       this.muscle_show=false
456 473
       this.qufen = true
457 474
       this.cancel_num=1
475
+      this.append2 = true
458 476
     },
459 477
     // 打印
460 478
     print_pingfen(){
@@ -491,8 +509,8 @@ export default {
491 509
     // 评估护士
492 510
     getpinggr(id){
493 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,6 +533,9 @@ export default {
515 533
       }
516 534
       getPatientBedlist(params).then(response =>{
517 535
         if(response.data.state ==1){
536
+          if(this.history_muscle.length >0){
537
+            this.history_muscle.length=0
538
+          }
518 539
           const list = response.data.data.list
519 540
           console.log('response.data.data.list12',list);
520 541
           list.forEach(item => {
@@ -534,7 +555,17 @@ export default {
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 571
 </script>
@@ -586,6 +617,9 @@ export default {
586 617
 #ctrl-xgtlpic-mask.readonly {
587 618
   z-index: 2000;
588 619
 }
620
+#ctrl-xgtlpic-mask2.readonly {
621
+  z-index: 2000;
622
+}
589 623
 #ctrl-xgtlpic-mask {
590 624
     width: 85%;
591 625
     height: 100%;
@@ -595,6 +629,15 @@ export default {
595 629
     opacity: 0;
596 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 641
 .tables {
599 642
 
600 643
   thead th{

+ 105 - 109
src/xt_pages/user/evaluationtool/OHpressuresore.vue Wyświetl plik

@@ -17,7 +17,7 @@
17 17
 
18 18
               <div style="flex:1" v-if="baocun_open==1">
19 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 21
                 <el-button  @click="cancel_OH" >取消</el-button>
22 22
               </div>
23 23
 
@@ -107,9 +107,9 @@
107 107
                   <el-select v-model="oh_appraiser" placeholder="请选择"  style="width:120px;">
108 108
                       <el-option
109 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 114
                       </el-option>
115 115
                   </el-select>
@@ -303,7 +303,7 @@ export default {
303 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 304
       edema:[{value:0,label:'无(0分)',check:0,is_check:false},{value:3,label:'有(3分)',check:0,is_check:false}],
305 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 307
       checkList:[],
308 308
       checkList1:[],
309 309
       checkList2:[],
@@ -319,6 +319,7 @@ export default {
319 319
       cancel_num:0,//取消的条件
320 320
       open_print:false,
321 321
       dele_id:'',//删除的索引
322
+      dele_id2:'',
322 323
       dele_dialogVisible:false,
323 324
       oh_huli:'',//护理措施
324 325
       oh_date:this.getTime(new Date()),
@@ -432,6 +433,7 @@ export default {
432 433
         this.append = false
433 434
         this.append2 = false
434 435
       }
436
+
435 437
       // for(let i in this.tiwei){
436 438
       //   this.tiwei[i].is_check = false,
437 439
       //   this.tiwei[i].check = 0
@@ -461,6 +463,7 @@ export default {
461 463
         this.add_show=true
462 464
         this.zsgy_open=1
463 465
         this.cancel_num=1
466
+        this.append2 =false
464 467
         const data = {}
465 468
         var list =[]
466 469
         data['patient_id'] =  this.patientID
@@ -485,19 +488,21 @@ export default {
485 488
           if(response.data.state ==1){
486 489
             console.log('response.data.state',response.data);
487 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,9 +515,8 @@ export default {
510 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 520
       console.log('row',this.dele_id);
517 521
       if(this.baocun_open == 1){
518 522
         this.add_show = true
@@ -523,96 +527,63 @@ export default {
523 527
       getPedPatientFallAssessmentById(this.dele_id).then(response=>{
524 528
         if(response.data.state ==1){
525 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 589
     dele_OH(){
@@ -639,13 +610,31 @@ export default {
639 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 638
       this.dele_dialogVisible=false
650 639
       return this.history_OH
651 640
     },
@@ -667,10 +656,12 @@ export default {
667 656
       if(this.cancel_num==1){
668 657
         this.zsgy_open=1
669 658
         this.add_show=true
659
+        this.append2=false
670 660
       }else{
671 661
         this.zsgy_open=0
672 662
         this.add_show=true
673 663
         this.append=false
664
+        this.append2=false
674 665
         this.tiwei_num=''
675 666
         this.bingli_num=null
676 667
         this.edema_num=null
@@ -705,17 +696,18 @@ export default {
705 696
     // 评估护士
706 697
     getpinggr(id){
707 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 705
     getAllNurseList(){
714 706
      getAllNurseList().then(response=>{
715 707
         if(response.data.state ==1){
716 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,6 +721,9 @@ export default {
729 721
         }
730 722
       getPatientBedlist(params).then(response=>{
731 723
         if(response.data.state ==1){
724
+          if(this.history_OH.length >0){
725
+            this.history_OH.length=0
726
+          }
732 727
           var list = response.data.data.list
733 728
           list.forEach((item) => {
734 729
 
@@ -811,6 +806,7 @@ export default {
811 806
   this.patientID = parseInt(id)
812 807
   console.log('this.$route.query.patient_id',this.patientID);
813 808
   this.getlist()
809
+  this.getAllNurseList()
814 810
  }
815 811
 }
816 812
 </script>

+ 13 - 2
src/xt_pages/user/evaluationtool/RassAssessment.vue Wyświetl plik

@@ -454,7 +454,7 @@
454 454
 import PatientSidebar from '../components/PatientSidebar.vue'
455 455
 import behavior from './behavior.vue'
456 456
 import { uParseTime } from '@/utils/tools'
457
-import {savePatientHpressuresore} from '@/api/fallassement'
457
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
458 458
 export default {
459 459
     components:{
460 460
       PatientSidebar,
@@ -480,7 +480,7 @@ export default {
480 480
             RAssdate:this.getTime(new Date()),
481 481
             rass_appraiser:'',
482 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 485
             qita_val:'',
486 486
             qita_textarea:'',
@@ -565,6 +565,7 @@ export default {
565 565
     created(){
566 566
       const id = this.$route.params && this.$route.params.id
567 567
       this.patientID = parseInt(id)
568
+      this.getAllNurseList()
568 569
     },
569 570
     methods:{
570 571
       // RASS评估表
@@ -934,6 +935,16 @@ export default {
934 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 949
     computed:{
939 950
       // Pain_score(){

+ 17 - 6
src/xt_pages/user/evaluationtool/dailyLife.vue Wyświetl plik

@@ -177,9 +177,9 @@
177 177
                           <el-select v-model="appraiser" placeholder="请选择"  style="width:150px;">
178 178
                               <el-option
179 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 184
                               </el-option>
185 185
                           </el-select>
@@ -205,7 +205,7 @@
205 205
 <script>
206 206
 import PatientSidebar from '../components/PatientSidebar.vue'
207 207
 import { uParseTime } from '@/utils/tools'
208
-import {savePatientHpressuresore} from '@/api/fallassement'
208
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
209 209
 export default {
210 210
   components:{
211 211
     PatientSidebar
@@ -229,7 +229,7 @@ export default {
229 229
       louti_val:null,
230 230
       appraiser:'',
231 231
       // optionsarr:[],
232
-      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
232
+      optionsarr:[],
233 233
       date:this.getTime(new Date()),
234 234
       Patient_info:{name:'',dialysis_no:''},
235 235
       jinshi:[{value:10,label:'可独立进食(10分)',is_check:false,check:0},
@@ -278,7 +278,7 @@ export default {
278 278
   created(){
279 279
     const id = this.$route.params && this.$route.params.id
280 280
     this.patientID = parseInt(id)
281
-    // this.patient_id = parseInt(id)
281
+    this.getAllNurseList()
282 282
   },
283 283
   methods:{
284 284
     jinshiclick(e,item){
@@ -517,6 +517,7 @@ export default {
517 517
               Patient_info:this.Patient_info}
518 518
         })
519 519
     },
520
+    // 患者信息
520 521
     tranpatient(event){
521 522
       console.log('event',event);
522 523
       this.Patient_info={
@@ -524,6 +525,16 @@ export default {
524 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 539
   computed:{
529 540
     date_Totalpoints(){

Plik diff jest za duży
+ 2829 - 737
src/xt_pages/user/evaluationtool/hemodialysis.vue


+ 15 - 6
src/xt_pages/user/evaluationtool/mindAssessment.vue Wyświetl plik

@@ -82,9 +82,9 @@
82 82
                             <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
83 83
                                 <el-option
84 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 89
                                 </el-option>
90 90
                             </el-select>
@@ -102,7 +102,7 @@
102 102
 <script>
103 103
 import { uParseTime } from '@/utils/tools'
104 104
 import PatientSidebar from '../components/PatientSidebar.vue'
105
-import {savePatientHpressuresore} from '@/api/fallassement'
105
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
106 106
 export default {
107 107
   components:{
108 108
     PatientSidebar
@@ -124,7 +124,7 @@ export default {
124 124
           qingan:[{value:1,label:'有'},{value:0,label:'无'}],
125 125
           appraiser:'',
126 126
           // optionsarr:[],
127
-          optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
127
+          optionsarr:[],
128 128
           date:this.getTime(new Date()),
129 129
           Patient_info:{name:'',dialysis_no:''},
130 130
       }
@@ -133,7 +133,7 @@ export default {
133 133
   created(){
134 134
     const id = this.$route.params && this.$route.params.id
135 135
     this.patientID = parseInt(id)
136
-    // this.patient_id = parseInt(id)
136
+    this.getAllNurseList()
137 137
   },
138 138
   methods:{
139 139
     // 历史评分
@@ -211,7 +211,16 @@ export default {
211 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 226
 </script>

+ 13 - 2
src/xt_pages/user/evaluationtool/nourishmentAssessment.vue Wyświetl plik

@@ -202,7 +202,7 @@
202 202
 <script>
203 203
 import PatientSidebar from '../components/PatientSidebar.vue'
204 204
 import { uParseTime } from '@/utils/tools'
205
-import {savePatientHpressuresore} from '@/api/fallassement'
205
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
206 206
 export default {
207 207
   components:{
208 208
     PatientSidebar
@@ -233,7 +233,7 @@ export default {
233 233
       yy_date:this.getTime(new Date()),
234 234
       Patient_info:{name:'',dialysis_no:''},
235 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 237
       jibq_show:[],
238 238
       jibz_show:[],
239 239
       jibzz_show:[],
@@ -256,6 +256,7 @@ export default {
256 256
   created(){
257 257
     const id = this.$route.params && this.$route.params.id
258 258
     this.patientID = parseInt(id)
259
+    this.getAllNurseList()
259 260
   },
260 261
   methods:{
261 262
     // 选中分值
@@ -704,6 +705,16 @@ export default {
704 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 719
   computed:{
709 720
     nour_Totalpoints(){

+ 4 - 3
src/xt_pages/user/evaluationtool/pediatricFallAssessment.vue Wyświetl plik

@@ -198,8 +198,8 @@ export default {
198 198
       dialogVisible:false,
199 199
       text:'',
200 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 203
       tumble:'',
204 204
       date:this.getTime(new Date()),
205 205
       patient:'',
@@ -367,13 +367,14 @@ export default {
367 367
         })
368 368
       }
369 369
     },
370
+    // 评估人数据源
370 371
     getAllNurseList(){
371 372
         getAllNurseList().then(response=>{
372 373
            if(response.data.state ==1){
373 374
             console.log('response.data.data',response.data.data);
374 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 Wyświetl plik

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

@@ -105,9 +105,9 @@
105 105
               <el-select v-model="pruritus_appraiser" placeholder="请选择" style="width:150px;">
106 106
                   <el-option
107 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 112
                   </el-option>
113 113
               </el-select>
@@ -125,7 +125,7 @@
125 125
 <script>
126 126
 import PatientSidebar from '../components/PatientSidebar.vue'
127 127
 import { uParseTime } from '@/utils/tools'
128
-import {savePatientHpressuresore} from '@/api/fallassement'
128
+import {getAllNurseList,savePatientHpressuresore} from '@/api/fallassement'
129 129
 export default {
130 130
   components:{
131 131
     PatientSidebar
@@ -144,7 +144,7 @@ export default {
144 144
       radio3_points:0,
145 145
       checked_points:0,
146 146
       // pruritus_options:[],
147
-      pruritus_options:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
147
+      pruritus_options:[],
148 148
       pruritus_appraiser:'',
149 149
       pruritus_date:this.getTime(new Date()),
150 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,6 +167,7 @@ export default {
167 167
   created(){
168 168
     const id = this.$route.params && this.$route.params.id
169 169
     this.patientID = parseInt(id)
170
+    this.getAllNurseList()
170 171
   },
171 172
   methods:{
172 173
     // 痒的部位选项
@@ -380,6 +381,16 @@ export default {
380 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 395
   computed:{
385 396
     pruritus_Totalpoints(){

+ 17 - 4
src/xt_pages/user/history/Children_history.vue Wyświetl plik

@@ -353,7 +353,7 @@
353 353
 <script>
354 354
 import print from 'print-js'
355 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 357
 export default{
358 358
   data(){
359 359
     return{
@@ -394,8 +394,8 @@ export default{
394 394
       checked:'',
395 395
       checkList:[],
396 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 399
       tumble:0,//评估人
400 400
       date:this.getTime(new Date()),//评估日期
401 401
       patient_id:0,
@@ -663,6 +663,7 @@ export default{
663 663
               this.tableData[i].mark = updatenum.total,
664 664
               this.tableData[i].time = this.getTime(updatenum.record_date),
665 665
               this.tableData[i].evaluate = this.getoptions(updatenum.admin_user_id)
666
+              this.tableData[i].list = updatenum
666 667
             }
667 668
            }
668 669
          }
@@ -743,7 +744,18 @@ export default{
743 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 760
   computed:{
749 761
     pedia_Totalpoints:{
@@ -765,6 +777,7 @@ export default{
765 777
     this.Patient_info = this.$route.query.Patient_info
766 778
     // this.tumble_options = this.$route.query.tumble_options
767 779
     this.getPedDiatricFallAssessmentList()
780
+    this.getAllNurseList()
768 781
   }
769 782
 }
770 783
 </script>

+ 26 - 6
src/xt_pages/user/history/Pressure_history.vue Wyświetl plik

@@ -760,6 +760,7 @@ export default{
760 760
     this.patient_id = this.$route.query.patient_id
761 761
     this.Patient_info = this.$route.query.Patient_info
762 762
     this.getlist()
763
+    this.getAllNurseList()
763 764
   },
764 765
   methods:{
765 766
     // 返回
@@ -1031,7 +1032,7 @@ export default{
1031 1032
             if(item.text !=''){
1032 1033
               const text =JSON.parse(item.text)
1033 1034
               console.log('text',text);
1034
-              const arr ={ 
1035
+              const arr ={
1035 1036
                 id:item.id,
1036 1037
                 time:text.date,
1037 1038
                 ganzhi:text.ganzhi,
@@ -1062,8 +1063,17 @@ export default{
1062 1063
     getoptions(ids){
1063 1064
      const options= this.dutyoptions
1064 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,18 +1091,28 @@ export default{
1081 1091
           console.log('arr2',arr2);
1082 1092
       }
1083 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 1106
   computed:{
1087 1107
     mark:{
1088 1108
       get(){
1089 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 1112
       set(val){
1093 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 Wyświetl plik

@@ -323,7 +323,7 @@ export default{
323 323
       RAssradio:'',
324 324
       dayin:this.getTime2(new Date()),
325 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 327
       tengtable:[],
328 328
       LOS:[{title:'0分', label:'清醒',value:0},{title:'1分', label:'有些昏昏欲睡,但容易唤醒',value:1},
329 329
             {title:'2分', label:'频繁发生昏昏欲睡,容易唤醒,但不能持续处于觉醒状态',value:2},
@@ -350,6 +350,7 @@ export default{
350 350
     this.Patient_info = this.$route.query.Patient_info
351 351
     this.getRass_list()
352 352
     this.getteng_list()
353
+    this.getAllNurseList()
353 354
   },
354 355
   methods:{
355 356
     // 返回
@@ -574,9 +575,16 @@ export default{
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 Wyświetl plik

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

+ 19 - 9
src/xt_pages/user/history/date_history.vue Wyświetl plik

@@ -525,9 +525,9 @@
525 525
                           <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
526 526
                               <el-option
527 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 532
                               </el-option>
533 533
                           </el-select>
@@ -589,8 +589,7 @@ export default{
589 589
       row:'',
590 590
       tableData:[],
591 591
       appraiser:0,
592
-      // optionsarr:[],
593
-      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
592
+      optionsarr:[],
594 593
       date:this.getTime(new Date()),
595 594
       patient_id:0,
596 595
       Patient_info:{},
@@ -1138,14 +1137,24 @@ export default{
1138 1137
         }
1139 1138
     },
1140 1139
      // 评估护士
1141
-     getoptions(ids){
1140
+    getoptions(ids){
1142 1141
      const options= this.optionsarr
1143 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 1159
   computed:{
1151 1160
     date_Totalpoints:{
@@ -1165,6 +1174,7 @@ export default{
1165 1174
     this.Patient_info = this.$route.query.Patient_info
1166 1175
     // this.tumble_options = this.$route.query.tumble_options
1167 1176
     this.getlist()
1177
+    this.getAllNurseList()
1168 1178
   }
1169 1179
 }
1170 1180
 </script>

+ 18 - 7
src/xt_pages/user/history/mind_history.vue Wyświetl plik

@@ -199,9 +199,9 @@
199 199
               <el-select v-model="appraiser" placeholder="请选择" style="width:150px;">
200 200
                   <el-option
201 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 206
                   </el-option>
207 207
               </el-select>
@@ -255,7 +255,7 @@ export default{
255 255
       qingan:[{value:1,label:'有'},{value:0,label:'无'}],
256 256
       appraiser:'',
257 257
       // optionsarr:[],
258
-      optionsarr:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
258
+      optionsarr:[],
259 259
       date:this.getTime(new Date()),
260 260
       limit:10,
261 261
       page:1,
@@ -269,6 +269,7 @@ export default{
269 269
     this.patient_id = this.$route.query.patient_id
270 270
     this.Patient_info = this.$route.query.Patient_info
271 271
     this.getlist()
272
+    this.getAllNurseList()
272 273
   },
273 274
   methods:{
274 275
     fanhui(){
@@ -490,11 +491,21 @@ export default{
490 491
     getoptions(ids){
491 492
      const options= this.optionsarr
492 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 511
 </script>

+ 11 - 1
src/xt_pages/user/history/nourishment_history.vue Wyświetl plik

@@ -540,7 +540,7 @@ export default{
540 540
       check3:0,
541 541
       yy_date:this.getTime(new Date()),
542 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 544
       jibq_show:[],
545 545
       jibz_show:[],
546 546
       jibzz_show:[],
@@ -574,6 +574,7 @@ export default{
574 574
     this.patient_id = this.$route.query.patient_id
575 575
     this.Patient_info = this.$route.query.Patient_info
576 576
     this.getlist()
577
+    this.getAllNurseList()
577 578
   },
578 579
   methods:{
579 580
     fanhui(){
@@ -1279,6 +1280,15 @@ export default{
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 1293
   computed:{
1284 1294
     nour_Totalpoints:{

+ 23 - 10
src/xt_pages/user/history/pruritus_history.vue Wyświetl plik

@@ -170,7 +170,9 @@
170 170
                               <label><input type="checkbox" class="check" :value="item.id" v-model="item.is_check"  @click="handleCheckedCitiesChange($event,item)"/>&nbsp;{{ item.label }}</label>
171 171
                           </span>
172 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 176
                           </label>
175 177
                           <label >
176 178
                             <input type="checkbox" class="checkbox" value="全身" v-model="items.is_check2" @click="quan_change"/>&nbsp;全身
@@ -326,13 +328,13 @@
326 328
 
327 329
             <div class="bottoms">
328 330
               <span>评估人:</span>
329
-              <el-select v-model="pruritus_appraiser" placeholder="请选择" >
331
+              <el-select v-model="pruritus_appraiser" placeholder="请选择" style="width:150px;">
330 332
                   <el-option
331 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 338
                   </el-option>
337 339
               </el-select>
338 340
             </div>
@@ -389,7 +391,7 @@ export default{
389 391
       check1:0,
390 392
       is_check2:false,
391 393
       check2:0,
392
-      pruritus_options:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
394
+      pruritus_options:[],
393 395
       pruritus_appraiser:'',
394 396
       buwei_input:'',
395 397
       pruritus_date:this.getTime(new Date()),
@@ -414,6 +416,7 @@ export default{
414 416
     this.patient_id = this.$route.query.patient_id
415 417
     this.Patient_info = this.$route.query.Patient_info
416 418
     this.getlist()
419
+    this.getAllNurseList()
417 420
   },
418 421
   methods:{
419 422
     // 返回
@@ -822,8 +825,8 @@ export default{
822 825
     getoptions(ids){
823 826
      const options= this.pruritus_options
824 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,7 +866,7 @@ export default{
863 866
     //     const val = '全身'
864 867
     //     return val
865 868
     //   }
866
-    // },
869
+    // }, pruritus_options
867 870
     getchegdu(val){
868 871
       const text = this.chengdu
869 872
       for(let i in text){
@@ -892,6 +895,16 @@ export default{
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 909
   computed:{
897 910
     pruritus_Totalpoints:{

+ 388 - 444
src/xt_pages/user/history/tumble_history.vue Wyświetl plik

@@ -87,13 +87,13 @@
87 87
         </div>
88 88
 
89 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 91
             <div style="width:100%;margin-top: 20px;">
92 92
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
93 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 97
               </div>
98 98
               <table class="tables" border="1" style="border-collapse:collapse;text-align:center;width:100%;font-size:16px">
99 99
                 <tr>
@@ -102,11 +102,11 @@
102 102
                   <td style="">护理措施</td>
103 103
                   <td style="width:150px">评估护士</td>
104 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 110
                 </tr>
111 111
               </table>
112 112
             </div>
@@ -130,15 +130,16 @@
130 130
         </div>
131 131
 
132 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 134
             <div style="width:100%;margin-top: 20px;">
135 135
               <div style="text-align: center;"><h1>血液透析中心跌倒评估记录</h1></div>
136 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 143
               </div>
143 144
               <table class="tables" border style="width: 100%;border-collapse: collapse;font-size: 16px;">
144 145
                 <thead>
@@ -233,8 +234,8 @@
233 234
                   </tr>
234 235
                 </tbody>
235 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 239
               <p>
239 240
                 <span>预防效果:</span>
240 241
                 <span v-for="item in xiaoguo" class="rightjiange">
@@ -243,13 +244,13 @@
243 244
               </p>
244 245
               <p>
245 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 250
                 </span>
250 251
               </p>
251 252
               <p>
252
-                打印时间:
253
+                打印时间:{{ time_now }}
253 254
               </p>
254 255
             </div>
255 256
           </div>
@@ -260,6 +261,8 @@
260 261
         <el-button type="primary" @click="mingxi_dialogVisible = false">确 定</el-button>
261 262
       </span>
262 263
     </el-dialog>
264
+
265
+    
263 266
     <!-- 编辑 -->
264 267
     <el-dialog
265 268
       title="编辑"
@@ -558,7 +561,7 @@
558 561
                                 <td>
559 562
                                   <div class="xiaojige">
560 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 565
                                     </label><br>
563 566
                                    
564 567
                                   </div>
@@ -749,8 +752,9 @@
749 752
   </div>
750 753
 </template>
751 754
 <script>
755
+const moment = require('moment')
752 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 758
 import { uParseTime } from "@/utils/tools";
755 759
 export default{
756 760
   data(){
@@ -772,16 +776,16 @@ export default{
772 776
       checkList:[],
773 777
       centerDialogVisible:false,
774 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 789
       page:1,
786 790
       limit:10,
787 791
       total:0,
@@ -817,7 +821,10 @@ export default{
817 821
       id:0,
818 822
       index:0,
819 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 830
   methods:{
@@ -837,26 +844,231 @@ export default{
837 844
         
838 845
         if(this.ids.length==0){
839 846
           this.$message('请选择需要打印的记录')
847
+          return
840 848
         }
841 849
          var params = {
842 850
           ids:this.ids.join(","),
851
+          patient_id:this.$route.query.patient_id,
843 852
          }
844 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 1073
     print_pingfen(ids){
862 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,220 +1271,88 @@ export default{
1059 1271
             if(patientFallsessment.is_check_nineteen ==2){
1060 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 1352
             this.bianji_dialogVisible=true
1274 1353
             console.log('1111',row);
1275 1354
           }
1355
+      
1276 1356
       })
1277 1357
     
1278 1358
     },
@@ -1307,8 +1387,8 @@ export default{
1307 1387
       this.add_centerDialogVisible_one = true
1308 1388
     },
1309 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 1392
       this.listOne.push(obj)
1313 1393
     
1314 1394
       this.add_centerDialogVisible_one = false
@@ -1336,47 +1416,53 @@ export default{
1336 1416
       getPatientFallsessmentList(params).then(response=>{
1337 1417
          if(response.data.state ==1){
1338 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 1468
            this.tableData =  list
@@ -1579,161 +1665,19 @@ export default{
1579 1665
         var record_date = this.record_date
1580 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 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 1681
         record_date:record_date,
1738 1682
         ping_date:ping_date,
1739 1683
         admin_user_id:this.admin_user_id,

+ 1 - 1
src/xt_pages/user/patients.vue Wyświetl plik

@@ -352,7 +352,7 @@
352 352
       
353 353
   
354 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 356
       </div>
357 357
       <div  class="cell clearfix">
358 358