瀏覽代碼

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 4 週之前
父節點
當前提交
fd63c3475e

+ 74 - 0
src/api/fallassement.js 查看文件

@@ -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
+  }

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_seventythree.vue 查看文件

@@ -1172,7 +1172,7 @@
1172 1172
                                   "
1173 1173
                                   >【开始透析】引血 {{ record.dialysis_order.blood_drawing }} ml/min</template
1174 1174
                                 >
1175
-                                {{ monitor_record.end }}
1175
+                                {{ monitor_record.dispose }} {{ monitor_record.end }}
1176 1176
                                  &nbsp;
1177 1177
                                 &nbsp;
1178 1178
                               </span>

+ 6 - 6
src/xt_pages/dialysis/details/consumable/dialysisGood.vue 查看文件

@@ -98,12 +98,12 @@
98 98
           :label="item.filed_name_cn"
99 99
         >
100 100
           <template slot-scope="scope">
101
-            <!-- <span v-if="org_id !=10599 && org_id!=10138 && org_id!=10278">
101
+            <span v-if="org_id !=10599">
102 102
               {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}
103
-            </span> -->
104
-            <span>
105
-              <span v-if="scope.row.dialysis_prescription==null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}</span>
106
-              <span v-if="scope.row.dialysis_prescription!=null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_prescription)}}</span>
103
+            </span>
104
+            <span v-if="org_id ==10599">
105
+              <span v-if="scope.row.dialysis_prescription!=null && scope.row.dialysis_prescription.id == 0"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}</span>
106
+              <span v-if="scope.row.dialysis_prescription!=null && scope.row.dialysis_prescription.id > 0"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_prescription)}}</span>
107 107
             </span>
108 108
           
109 109
             <!-- {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}} -->
@@ -602,7 +602,7 @@
602 602
         //  console.log("arrTwo",arrTwo)
603 603
          const tHeader = arr
604 604
         const filterVal = arrTwo
605
-        console.log("list23323223wo",this.list)
605
+       
606 606
         if(this.list!=null && this.list.length > 0){
607 607
           for(let i=0;i<this.list.length;i++){
608 608
             this.list[i].name0 = i+1

+ 2 - 2
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue 查看文件

@@ -46,8 +46,8 @@
46 46
                     {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}
47 47
                   </span>
48 48
                   <span v-if="org_id==10599">
49
-                    <span v-if="item.dialysis_prescription==null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}</span>
50
-                     <span v-if="item.dialysis_prescription!=null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_prescription)}}</span>
49
+                    <span v-if="item.dialysis_prescription!=null && item.dialysis_prescription.id == 0"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}</span>
50
+                     <span v-if="item.dialysis_prescription!=null & item.dialysis_prescription.id >0"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_prescription)}}</span>
51 51
                   </span>
52 52
                 
53 53
                 </td>

+ 9 - 8
src/xt_pages/dialysis/hisLongSignPrint.vue 查看文件

@@ -239,9 +239,9 @@ export default {
239 239
                     }
240 240
                 }
241 241
              }
242
-             console.log("寄哪里地方5555",this.$route.query.keywords)
242
+            //  console.log("寄哪里地方5555",this.$route.query.keywords)
243 243
              if(this.$route.query.keywords!=""){
244
-                console.log("寄哪里地方",this.$route.query.keywords)
244
+                // console.log("寄哪里地方",this.$route.query.keywords)
245 245
                for(let i=0;i<list.length;i++){
246 246
                  list[i].new_arr = []
247 247
                  for(let j=0;j<list[i].his_advice_list.length;j++){
@@ -251,13 +251,14 @@ export default {
251 251
                     }
252 252
                  }
253 253
                }
254
-          }
255
-          if(list!=null && list.length>0){
256
-            for(let i=0;i<list.length;i++){
257
-                list[i].his_advice_list =[]
258
-                list[i].his_advice_list = list[i].new_arr 
254
+             if(list!=null && list.length>0){
255
+                for(let i=0;i<list.length;i++){
256
+                    list[i].his_advice_list =[]
257
+                    list[i].his_advice_list = list[i].new_arr 
258
+                }
259 259
             }
260
-         }
260
+          }
261
+         
261 262
         }
262 263
         
263 264
        

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSeventythree.vue 查看文件

@@ -1087,7 +1087,7 @@
1087 1087
                                 >【开始透析】引血{{ dialysisOrder.blood_drawing }} ml/min
1088 1088
                                 </template>
1089 1089
 
1090
-                              {{ monitor.end }}  &nbsp;
1090
+                              {{ monitor.dispose }} {{ monitor.end }}  &nbsp;
1091 1091
                               &nbsp;
1092 1092
                             </span>
1093 1093
                           </div>

+ 1 - 1
src/xt_pages/outpatientCharges/statementTemplate/printFour.vue 查看文件

@@ -84,7 +84,7 @@
84 84
                         </div>
85 85
                           <div class="chargeUl" style="border-top:1px solid #000;border-bottom:1px solid #000;">
86 86
                               <p style="width:50%;">现金支付</p>
87
-                              <p style="width:50%;">{{info.psn_pay?info.psn_pay.toFixed(2):0}}元</p>
87
+                              <p style="width:50%;">{{info.new_order.psn_cash_pay?info.new_order.psn_cash_pay.toFixed(2):0}}元</p>
88 88
                           </div>
89 89
                       </div>
90 90
                       <div style="width:80%;max-height:500px;">

+ 11 - 8
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

@@ -17,7 +17,7 @@
17 17
       >明细导出
18 18
     </el-button>
19 19
     <el-button
20
-      v-if="org_id == 10265 || org_id == 0"
20
+      v-if="org_id == 10265"
21 21
       style="float: right;margin-right:10px"
22 22
       size="small"
23 23
       @click="exportListDetaiOne"
@@ -25,7 +25,7 @@
25 25
       >明细导出
26 26
     </el-button>
27 27
     <el-button
28
-      v-if="org_id == 10480"
28
+      v-if="org_id == 10480|| org_id == 0"
29 29
       style="float: right;margin-right:10px"
30 30
       size="small"
31 31
       @click="exportListDetaiTwo"
@@ -445,6 +445,7 @@ export default {
445 445
          limit:this.limit,
446 446
          storehouse_id:this.storehouse_id,
447 447
       }
448
+      console.log("jajjfjajfjajfdj")
448 449
       getDrugOutDetail(params).then(response=>{
449 450
         this.tableData = []
450 451
         this.tableList = []
@@ -545,7 +546,7 @@ export default {
545 546
                   dose_unit:item.dose_unit,
546 547
                   min_number:item.min_number,
547 548
                   max_unit:item.max_unit,
548
-                  in_price:item.in_price,
549
+                  in_price:item.infor_price,
549 550
                 }
550 551
               }
551 552
              }else{
@@ -564,7 +565,7 @@ export default {
564 565
                   dose_unit:item.dose_unit,
565 566
                   min_number:item.min_number,
566 567
                   max_unit:item.max_unit,
567
-                  in_price:item.in_price,
568
+                  in_price:item.infor_price,
568 569
                 }
569 570
               }
570 571
              }
@@ -591,8 +592,10 @@ export default {
591 592
 
592 593
            for(let i=0;i<list.length;i++){
593 594
               list[i].total_price = list[i].count * list[i].price
595
+             
594 596
             }
595
-
597
+           
598
+          console.log("list----------------------",list)
596 599
           this.tableList = list
597 600
           var total = response.data.data.total
598 601
           this.total = total
@@ -813,7 +816,7 @@ export default {
813 816
        var out_total = 0
814 817
        var in_total =0
815 818
       console.log("tatbledateawowowo",this.tableData)
816
- 
819
+   
817 820
       for(let i=0;i<this.tableData.length;i++){
818 821
          if(this.tableData[i].is_total == 0){
819 822
             this.tableData[i].index = i+1
@@ -831,7 +834,7 @@ export default {
831 834
             this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)
832 835
             this.tableData[i].manufacturer_name = this.getManufacturerName(this.tableData[i].manufacturer)
833 836
             this.tableData[i].out_count = this.tableData[i].count
834
-            this.tableData[i].in_retail_price = (this.tableData[i].in_price/this.tableData[i].min_number).toFixed(2)
837
+            this.tableData[i].in_retail_price = (this.tableData[i].infor_price/this.tableData[i].min_number).toFixed(2)
835 838
             this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
836 839
             this.tableData[i].patient_name = this.getPatientName(this.tableData[i].patient_id) 
837 840
             if(this.tableData[i].count_unit == this.tableData[i].min_unit && this.tableData[i].max_unit!=this.tableData[i].min_unit){
@@ -867,7 +870,7 @@ export default {
867 870
 
868 871
       import('@/vendor/Export2Excel').then(excel => {
869 872
         const tHeader = ['序号','药品名称', '药品规格', '批号','生成厂家','药品类型','报销方式','入库单价','出库单价','出库数量','实际出库数量','单位','出库金额','实际出库金额','实际成本','出库对象','有效日期','出库日期','操作时间','出库单号','备注']
870
-        const filterVal = ['index','drug_name', 'specification_name', 'batch_number','manufacturer_name','drug_type','project_name','in_price','price','out_count','out_count','max_unit','out_total_price','out_total_price','in_total_price','patient_name','expiry_date','ctimeOne','ctimeTwo','warehouse_out_order_number','remark']
873
+        const filterVal = ['index','drug_name', 'specification_name', 'batch_number','manufacturer_name','drug_type','project_name','infor_price','price','out_count','out_count','max_unit','out_total_price','out_total_price','in_total_price','patient_name','expiry_date','ctimeOne','ctimeTwo','warehouse_out_order_number','remark']
871 874
 
872 875
        console.log("hwhhwhwhwhwhw",this.tableData)
873 876
         

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

@@ -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
       },

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

@@ -347,7 +347,7 @@
347 347
                 <div class="zhuangui">
348 348
                   <p style="display: inline-block; margin-right: 30px;">
349 349
                       护士长签字:
350
-                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{getoptions(items.nurse)}}</span>
350
+                      <span style="display: inline-block; border-bottom: 1px solid black;width: 100px;">{{items.nurse}}</span>
351 351
                   </p>
352 352
                   <p style="display: inline-block;">
353 353
                       日期:
@@ -588,9 +588,9 @@
588 588
                     <el-select v-model="duty" placeholder="请选择" style="width:120px;">
589 589
                         <el-option
590 590
                           v-for="item in dutyoptions"
591
-                          :key="item.admin_user_id"
592
-                          :label="item.user_name"
593
-                          :value="item.admin_user_id"
591
+                          :key="item.id"
592
+                          :label="item.label"
593
+                          :value="item.id"
594 594
                           >
595 595
                         </el-option>
596 596
                     </el-select>
@@ -647,10 +647,10 @@
647 647
                   护士长签字:
648 648
                   <el-select v-model="nurse" placeholder="请选择" style="width: 120px;">
649 649
                       <el-option
650
-                      v-for="item in dutyoptions"
651
-                        :key="item.admin_user_id"
652
-                        :label="item.user_name"
653
-                        :value="item.admin_user_id">
650
+                      v-for="item in nurse_options"
651
+                      :key="item.value"
652
+                      :label="item.label"
653
+                      :value="item.value">
654 654
                       </el-option>
655 655
                   </el-select>
656 656
               </p>
@@ -733,13 +733,13 @@ export default{
733 733
       date:this.getTime(new Date()),
734 734
       huli_value:'',
735 735
       family_date:this.getTime(new Date()),
736
-      dutyoptions:[],
736
+      dutyoptions:[{id:1,label:'寒千落'},{id:2,label:'千仞雪'},{id:3,label:'千亦雪'},],
737 737
       duty:'',
738 738
       family_member:'',
739 739
       appraiser:'',
740 740
       appraiser_date:this.getTime(new Date()),
741 741
       nurse:'',
742
-      nurse_options:[{admin_user_id:1,user_name:'寒千落'},{admin_user_id:2,user_name:'千仞雪'},{admin_user_id:3,user_name:'千亦雪'}],
742
+      nurse_options:[],
743 743
       nurse_date:this.getTime(new Date()),
744 744
       hulicheckarr:[],
745 745
       patientID:0,
@@ -982,7 +982,7 @@ export default{
982 982
                 this.tableData[i].jiashu_date = text.jiashu_date,
983 983
                 this.tableData[i].appraiser = text.appraiser,
984 984
                 this.tableData[i].pingg_date = text.pingg_date,
985
-                this.tableData[i].nurse = this.getnurse(text.nurse),
985
+                this.tableData[i].nurse = text.nurse,
986 986
                 this.tableData[i].nurse_date = text.nurse_date,
987 987
                 this.tableData[i].zhuang_show = text.zhuang_show,
988 988
                 this.tableData[i].hulicuoshi = text.hulicuoshi
@@ -1032,7 +1032,7 @@ export default{
1032 1032
             if(item.text !=''){
1033 1033
               const text =JSON.parse(item.text)
1034 1034
               console.log('text',text);
1035
-              const arr ={ 
1035
+              const arr ={
1036 1036
                 id:item.id,
1037 1037
                 time:text.date,
1038 1038
                 ganzhi:text.ganzhi,
@@ -1107,12 +1107,12 @@ export default{
1107 1107
     mark:{
1108 1108
       get(){
1109 1109
         this.press_zong = this.ganzhi*1 + this.shidu*1 + this.huodong*1 + this.yidong*1 + this.mocha*1 + this.yingyang*1
1110
-        return this.press_zong 
1110
+        return this.press_zong
1111 1111
       },
1112 1112
       set(val){
1113 1113
         return this.press_zong = val
1114 1114
       }
1115
-      
1115
+
1116 1116
     }
1117 1117
   }
1118 1118
 }

+ 388 - 116
src/xt_pages/user/history/tumble_history.vue 查看文件

@@ -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.contentOne }} </span> </p>
238
+              <p> <span>护理措施:{{ item.content }}</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 class="rightjiange">日期:{{ getTime(item.ping_date) }}</span>
247 248
                 <span v-for="item in touxidiedao" class="rightjiange">
248
-                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item }}</label>
249
+                  <label><input type="checkbox" name="ball" value="volleyball" />&nbsp</label>
249 250
                 </span>
250 251
               </p>
251 252
               <p>
252
-                打印时间:
253
+                打印时间:{{ time_now }}
253 254
               </p>
254 255
             </div>
255 256
           </div>
@@ -558,7 +559,7 @@
558 559
                                 <td>
559 560
                                   <div class="xiaojige">
560 561
                                     <label>
561
-                                      <input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item.content }}
562
+                                      <input type="checkbox" name="ball" value="volleyball"  v-model="item.is_content_check_one"/>&nbsp;{{ item.content }}
562 563
                                     </label><br>
563 564
                                    
564 565
                                   </div>
@@ -749,8 +750,9 @@
749 750
   </div>
750 751
 </template>
751 752
 <script>
753
+const moment = require('moment')
752 754
 import print from 'print-js'
753
-import {getPatientFallsessmentList,getPatientFallssessmentById,DeletePatientFallassessment,updatePatientFallassment}  from '@/api/fallassement'
755
+import {getPatientFallsessmentList,getPatientFallssessmentById,DeletePatientFallassessment,updatePatientFallassment,getPatientFallaessmentListByIds,getPatientFallaessmentListOne}  from '@/api/fallassement'
754 756
 import { uParseTime } from "@/utils/tools";
755 757
 export default{
756 758
   data(){
@@ -772,16 +774,16 @@ export default{
772 774
       checkList:[],
773 775
       centerDialogVisible:false,
774 776
       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}],
777
+      nianlin:[{id:1,age_check:false,content:"≥65岁(1分)",is_status:2},{id:2,age_check:false,content:"<65(0分)",is_status:2}],
778
+      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}],
779
+      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}],
780
+      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}],
781
+      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}],
782
+      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}],
783
+      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}],
784
+      zilinl:[{id:1,zilinl_check:false,content:"无(4分)",is_status:2},{id:2,zilinl_check:false,content:"部分(3分)",is_status:2}],
785
+      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}],
786
+      touxidiedao:[{id:1,touxidiedao_check:false,content:"发生跌倒",is_status:2},{id:2,touxidiedao_check:false,content:"发生坠床",is_status:2}],
785 787
       page:1,
786 788
       limit:10,
787 789
       total:0,
@@ -817,7 +819,10 @@ export default{
817 819
       id:0,
818 820
       index:0,
819 821
       fallassesment_id:0,
820
-      ids:[]
822
+      ids:[],
823
+      patients:{},
824
+      time_now:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
825
+      printList:[]
821 826
     }
822 827
   },
823 828
   methods:{
@@ -837,26 +842,283 @@ export default{
837 842
         
838 843
         if(this.ids.length==0){
839 844
           this.$message('请选择需要打印的记录')
845
+          return
840 846
         }
841 847
          var params = {
842 848
           ids:this.ids.join(","),
849
+          patient_id:this.$route.query.patient_id,
843 850
          }
844 851
          console.log("params----",params)
845
-        getPatientFallaessmentList(params).then(response=>{
846
-
852
+        getPatientFallaessmentListByIds(params).then(response=>{
853
+          if(response.data.state ==1){
854
+            var list = response.data.data.list
855
+            this.patients = response.data.data.patients
856
+            for(let i=0;i<list.length;i++){
857
+            list[i].content =""
858
+            if(list[i].is_check_eight ==1){
859
+              list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
860
+            }
861
+            if(list[i].is_check_night == 1){
862
+              list[i].content =  list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
863
+            }
864
+            if(list[i].is_check_ten == 1){
865
+              list[i].content =  list[i].content + "及时给予便器,床上(边)大小便"
866
+            }
867
+            if(list[i].is_check_eleven == 1){
868
+              list[i].content =  list[i].content + "使用床档"
869
+            }
870
+            if(list[i].is_check_twelve == 1){
871
+              list[i].content =  list[i].content + "使用约束带"
872
+            }
873
+            if(list[i].is_check_thirteen == 1){
874
+              list[i].content =  list[i].content + "使用助行器"
875
+            }
876
+            if(list[i].is_check_fourteen == 1){
877
+              list[i].content =  list[i].content + "需要时协助病人上、下床"
878
+            }
879
+            if(list[i].is_check_fourteen == 1){
880
+              list[i].content =  list[i].content + "协助病人如厕"
881
+            }
882
+            if(list[i].is_check_sixteen == 1){
883
+              list[i].content =  list[i].content + "避免地面积水、湿滑"
884
+            }
885
+            if(list[i].is_check_seventeen == 1){
886
+              list[i].content =  list[i].content + "消除床旁及通道障碍"
887
+            }
888
+            if(list[i].is_check_eighteen == 1){
889
+              list[i].content =  list[i].content + "病床调至合适高度"
890
+            }
891
+            if(list[i].is_check_nineteen == 1){
892
+              list[i].content =  list[i].content + "及时锁上病床及轮椅的轮轴"
893
+            }
894
+           }
895
+            console.log("list=-====",list)
896
+            this.multipleSelection =list
897
+            this.dialogVisible = true
898
+          }
847 899
        })
848 900
       }
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
901
+      if(ids ==2){
902
+        if(this.ids.length==0){
903
+          this.$message('请选择需要打印的记录')
904
+          return
857 905
         }
906
+         var params = {
907
+          ids:this.ids.join(","),
908
+          patient_id:this.$route.query.patient_id,
909
+         }
910
+         console.log("params----",params)
911
+         getPatientFallaessmentListOne(params).then(response=>{
912
+          if(response.data.state ==1){
913
+            var list = response.data.data.list
914
+            this.patients = response.data.data.patients
915
+            for(let i=0;i<list.length;i++){
916
+              list[i].content =""
917
+              list[i].contentOne = ""
918
+              
919
+              if(list[i].is_check == 1){
920
+                list[i].contentOne= "告知病人及家属病人有跌倒的危险"
921
+              } 
858 922
 
859
-      }
923
+              if(list[i].is_check_one == 1){
924
+                list[i].contentOne= list[i].contentOne + "告知家属24小时陪伴,尤其在患者活动锻炼时,应有人陪伴,若离开请与值班护士联系"
925
+              } 
926
+
927
+              if(list[i].is_check_two == 1){
928
+                list[i].contentOne= list[i].contentOne + "告知病人及家属病人关于药物作用的注意事项"
929
+              } 
930
+
931
+              if(list[i].is_check_three == 1){
932
+                list[i].contentOne= list[i].contentOne + "穿合适的裤子,以免绊倒;穿防滑鞋"
933
+              } 
934
+
935
+              if(list[i].is_check_five == 1){
936
+                list[i].contentOne= list[i].contentOne + "如出现双眼发黑、下肢无力、行走不稳和不能移动时,立即原地坐/蹲下或靠墙,呼叫他人帮助"
937
+              } 
938
+
939
+              if(list[i].is_check_six == 1){
940
+                list[i].contentOne= list[i].contentOne + "指导病人使用病房及卫生间扶手"
941
+              } 
942
+
943
+              if(list[i].is_check_seven == 1){
944
+                list[i].contentOne= list[i].contentOne + "其他有关告知"
945
+              } 
946
+
947
+              if(list[i].is_check_four == 1){
948
+                list[i].contentOne= list[i].contentOne + " 告知患者改变体位欲活动时应遵循“三步曲”,即平卧30秒→双腿下垂30秒→行走,避免突然改变体位,引起体位性低血压,特别是夜间"
949
+              } 
950
+
951
+              if(list[i].is_check_eight ==1){
952
+                list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
953
+              }
954
+              if(list[i].is_check_night == 1){
955
+                list[i].content =  list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
956
+              }
957
+              if(list[i].is_check_ten == 1){
958
+                list[i].content =  list[i].content + "及时给予便器,床上(边)大小便"
959
+              }
960
+              if(list[i].is_check_eleven == 1){
961
+                list[i].content =  list[i].content + "使用床档"
962
+              }
963
+              if(list[i].is_check_twelve == 1){
964
+                list[i].content =  list[i].content + "使用约束带"
965
+              }
966
+              if(list[i].is_check_thirteen == 1){
967
+                list[i].content =  list[i].content + "使用助行器"
968
+              }
969
+              if(list[i].is_check_fourteen == 1){
970
+                list[i].content =  list[i].content + "需要时协助病人上、下床"
971
+              }
972
+              if(list[i].is_check_fourteen == 1){
973
+                list[i].content =  list[i].content + "协助病人如厕"
974
+              }
975
+              if(list[i].is_check_sixteen == 1){
976
+                list[i].content =  list[i].content + "避免地面积水、湿滑"
977
+              }
978
+              if(list[i].is_check_seventeen == 1){
979
+                list[i].content =  list[i].content + "消除床旁及通道障碍"
980
+              }
981
+              if(list[i].is_check_eighteen == 1){
982
+                list[i].content =  list[i].content + "病床调至合适高度"
983
+              }
984
+              if(list[i].is_check_nineteen == 1){
985
+                list[i].content =  list[i].content + "及时锁上病床及轮椅的轮轴"
986
+              }
987
+
988
+              if(list[i].PatientFallassessmentAge!=null && list[i].PatientFallassessmentAge.length>0){
989
+                  this.nianlin = []
990
+                   var obj = {id:0,age_check:false,content:"",is_status:0}
991
+                  for(let j=0;j<list[i].PatientFallassessmentAge.length;j++){
992
+                     obj.content = list[i].PatientFallassessmentAge[j].content
993
+                     if(list[i].PatientFallassessmentAge[j].is_status ==1){
994
+                        obj.age_check = true
995
+                     }else{
996
+                        obj.age_check = false
997
+                     }
998
+                     this.nianlin.push(obj)
999
+                  }
1000
+              } 
1001
+
1002
+              if(list[i].XtPatientFallassessmentHistory!=null && list[i].XtPatientFallassessmentHistory.length>0){
1003
+                  this.jiwang = []
1004
+                   var obj = {id:0,age_check:false,content:"",is_status:0}
1005
+                  for(let j=0;j<list[i].XtPatientFallassessmentHistory.length;j++){
1006
+                     obj.content = list[i].XtPatientFallassessmentHistory[j].content
1007
+                     if(list[i].XtPatientFallassessmentHistory[j].is_status ==1){
1008
+                        obj.jiwang_check = true
1009
+                     }else{
1010
+                        obj.jiwang_check = false
1011
+                     }
1012
+                     this.jiwang.push(obj)
1013
+                  }
1014
+              } 
1015
+
1016
+              if(list[i].XtPatientFallassessmentRealize!=null && list[i].XtPatientFallassessmentRealize.length>0){
1017
+                  this.yishizt = []
1018
+                   var obj = {id:0,yishizt_check:false,content:"",is_status:0}
1019
+                  for(let j=0;j<list[i].XtPatientFallassessmentRealize.length;j++){
1020
+                     obj.content = list[i].XtPatientFallassessmentRealize[j].content
1021
+                     if(list[i].XtPatientFallassessmentRealize[j].is_status ==1){
1022
+                        obj.yishizt_check = true
1023
+                     }else{
1024
+                        obj.yishizt_check = false
1025
+                     }
1026
+                     this.yishizt.push(obj)
1027
+                  }
1028
+              } 
1029
+
1030
+              if(list[i].XtPatientFallassessmentOrgan!=null && list[i].XtPatientFallassessmentOrgan.length>0){
1031
+                  this.ganguan = []
1032
+                   var obj = {id:0,ganguan_check:false,content:"",is_status:0}
1033
+                  for(let j=0;j<list[i].XtPatientFallassessmentOrgan.length;j++){
1034
+                     obj.content = list[i].XtPatientFallassessmentOrgan[j].content
1035
+                     if(list[i].XtPatientFallassessmentOrgan[j].is_status ==1){
1036
+                        obj.ganguan_check = true
1037
+                     }else{
1038
+                        obj.ganguan_check = false
1039
+                     }
1040
+                     this.ganguan.push(obj)
1041
+                  }
1042
+              } 
1043
+
1044
+              if(list[i].XtPatientFallassessmentBody!=null && list[i].XtPatientFallassessmentBody.length>0){
1045
+                  this.shentizk = []
1046
+                   var obj = {id:0,shentizk_check:false,content:"",is_status:0}
1047
+                  for(let j=0;j<list[i].XtPatientFallassessmentBody.length;j++){
1048
+                     obj.content = list[i].XtPatientFallassessmentBody[j].content
1049
+                     if(list[i].XtPatientFallassessmentBody[j].is_status ==1){
1050
+                        obj.shentizk_check = true
1051
+                     }else{
1052
+                        obj.shentizk_check = false
1053
+                     }
1054
+                     this.shentizk.push(obj)
1055
+                  }
1056
+              } 
1057
+
1058
+              if(list[i].XtPatientFallassessmentMedical!=null && list[i].XtPatientFallassessmentMedical.length>0){
1059
+                  this.syyaowu = []
1060
+                   var obj = {id:0,syyaowu_check:false,content:"",is_status:0}
1061
+                  for(let j=0;j<list[i].XtPatientFallassessmentMedical.length;j++){
1062
+                     obj.content = list[i].XtPatientFallassessmentMedical[j].content
1063
+                     if(list[i].XtPatientFallassessmentMedical[j].is_status ==1){
1064
+                        obj.syyaowu_check = true
1065
+                     }else{
1066
+                        obj.syyaowu_check = false
1067
+                     }
1068
+                     this.syyaowu.push(obj)
1069
+                  }
1070
+              } 
1071
+
1072
+              if(list[i].XtPatientFallassessmentExcrete!=null && list[i].XtPatientFallassessmentExcrete.length>0){
1073
+                  this.paixie = []
1074
+                   var obj = {id:0,paixie_check:false,content:"",is_status:0}
1075
+                  for(let j=0;j<list[i].XtPatientFallassessmentExcrete.length;j++){
1076
+                     obj.content = list[i].XtPatientFallassessmentExcrete[j].content
1077
+                     if(list[i].XtPatientFallassessmentExcrete[j].is_status ==1){
1078
+                        obj.paixie_check = true
1079
+                     }else{
1080
+                        obj.paixie_check = false
1081
+                     }
1082
+                     this.paixie_check.push(obj)
1083
+                  }
1084
+              } 
1085
+
1086
+              if(list[i].XtPatientFallassessmentCare!=null && list[i].XtPatientFallassessmentCare.length>0){
1087
+                  this.zilinl = []
1088
+                   var obj = {id:0,zilinl_check:false,content:"",is_status:0}
1089
+                  for(let j=0;j<list[i].XtPatientFallassessmentCare.length;j++){
1090
+                     obj.content = list[i].XtPatientFallassessmentCare[j].content
1091
+                     if(list[i].XtPatientFallassessmentCare[j].is_status ==1){
1092
+                        obj.zilinl_check = true
1093
+                     }else{
1094
+                        obj.zilinl_check = false
1095
+                     }
1096
+                     this.zilinl.push(obj)
1097
+                  }
1098
+              } 
1099
+
1100
+              if(list[i].XtPatientFallassessmentPrevent!=null && list[i].XtPatientFallassessmentPrevent.length>0){
1101
+                  this.xiaoguo = []
1102
+                   var obj = {id:0,xiaoguo_check:false,content:"",is_status:0}
1103
+                  for(let j=0;j<list[i].XtPatientFallassessmentPrevent.length;j++){
1104
+                     obj.content = list[i].XtPatientFallassessmentPrevent[j].content
1105
+                     if(list[i].XtPatientFallassessmentPrevent[j].is_status ==1){
1106
+                        obj.xiaoguo_check = true
1107
+                     }else{
1108
+                        obj.xiaoguo_check = false
1109
+                     }
1110
+                     this.xiaoguo.push(obj)
1111
+                  }
1112
+              } 
1113
+           }
1114
+            console.log("nianlin-----",this.nianlin)
1115
+            console.log("list=-====",list)
1116
+            this.printList =list
1117
+            this.mingxi_dialogVisible = true
1118
+          }
1119
+        })
1120
+      
1121
+     }
860 1122
     },
861 1123
     print_pingfen(ids){
862 1124
       const style= '@media print {.diedao_content{background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0;} .table tr td{padding:5px}}'
@@ -1213,39 +1475,7 @@ export default{
1213 1475
                  }
1214 1476
               }
1215 1477
 
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
-              }
1231
-
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
-              }
1247
-
1248
-
1478
+       
1249 1479
               if(patientFallsessment.XtPatientFallassessmentPrevent!=null && patientFallsessment.XtPatientFallassessmentPrevent.length>0){
1250 1480
                 for(let i=0;i<patientFallsessment.XtPatientFallassessmentPrevent.length;i++){
1251 1481
                    for(let j=0;j<this.xiaoguo.length;j++){
@@ -1261,6 +1491,42 @@ export default{
1261 1491
                    }
1262 1492
                 }
1263 1493
               }
1494
+
1495
+          
1496
+              if(patientFallsessment.PatientFallassessmentAdd!=null&&patientFallsessment.PatientFallassessmentAdd.length>0){
1497
+                  var obj = {id:0,is_content_check:false,content:"",is_status:2}
1498
+                  for(let i=0;i<patientFallsessment.PatientFallassessmentAdd.length;i++){
1499
+                     obj.content = patientFallsessment.PatientFallassessmentAdd[i].content
1500
+                     obj.id = patientFallsessment.PatientFallassessmentAdd[i].id
1501
+                     if(patientFallsessment.PatientFallassessmentAdd[i].is_check_status==1){
1502
+                          obj.is_content_check = true
1503
+                          obj.is_status=1
1504
+                     }else{
1505
+                        obj.is_content_check = false
1506
+                        obj.is_status=2
1507
+                     }
1508
+                     this.list.push(obj)
1509
+                  }
1510
+                  
1511
+              }
1512
+
1513
+              if(patientFallsessment.PatientFallassessmentAddCopy!=null&&patientFallsessment.PatientFallassessmentAddCopy.length>0){
1514
+                  
1515
+                 var obj = {id:0,is_content_check_one:false,content:"",is_status:2}
1516
+                  for(let i=0;i<patientFallsessment.PatientFallassessmentAddCopy.length;i++){
1517
+                     obj.content = patientFallsessment.PatientFallassessmentAddCopy[i].content
1518
+                     obj.id = patientFallsessment.PatientFallassessmentAddCopy[i].id
1519
+                     if(patientFallsessment.PatientFallassessmentAddCopy[i].is_check_status==1){
1520
+                          obj.is_content_check_one = true
1521
+                          obj.is_status=1
1522
+                     }else{
1523
+                          obj.is_content_check_one = false
1524
+                          obj.is_status=2
1525
+                     }
1526
+                     this.listOne.push(obj)
1527
+                  }
1528
+                 
1529
+              }
1264 1530
              
1265 1531
              
1266 1532
 
@@ -1336,47 +1602,53 @@ export default{
1336 1602
       getPatientFallsessmentList(params).then(response=>{
1337 1603
          if(response.data.state ==1){
1338 1604
            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 + "及时锁上病床及轮椅的轮轴"
1605
+           
1606
+           if(list!=null && list.length >0){
1607
+            for(let i=0;i<list.length;i++){
1608
+              list[i].content =""
1609
+              if(list[i].is_check_eight ==1){
1610
+                list[i].content = "在病人床头悬挂'防跌倒'、'防坠床'警示牌"
1611
+              }
1612
+              if(list[i].is_check_night == 1){
1613
+                list[i].content =  list[i].content + "呼叫器及用物放置病人易取处,教会使用呼叫器"
1614
+              }
1615
+              if(list[i].is_check_ten == 1){
1616
+                list[i].content =  list[i].content + "及时给予便器,床上(边)大小便"
1617
+              }
1618
+              if(list[i].is_check_eleven == 1){
1619
+                list[i].content =  list[i].content + "使用床档"
1620
+              }
1621
+              if(list[i].is_check_twelve == 1){
1622
+                list[i].content =  list[i].content + "使用约束带"
1623
+              }
1624
+              if(list[i].is_check_thirteen == 1){
1625
+                list[i].content =  list[i].content + "使用助行器"
1626
+              }
1627
+              if(list[i].is_check_fourteen == 1){
1628
+                list[i].content =  list[i].content + "需要时协助病人上、下床"
1629
+              }
1630
+              if(list[i].is_check_fourteen == 1){
1631
+                list[i].content =  list[i].content + "协助病人如厕"
1632
+              }
1633
+              if(list[i].is_check_sixteen == 1){
1634
+                list[i].content =  list[i].content + "避免地面积水、湿滑"
1635
+              }
1636
+              if(list[i].is_check_seventeen == 1){
1637
+                list[i].content =  list[i].content + "消除床旁及通道障碍"
1638
+              }
1639
+              if(list[i].is_check_eighteen == 1){
1640
+                list[i].content =  list[i].content + "病床调至合适高度"
1641
+              }
1642
+              if(list[i].is_check_nineteen == 1){
1643
+                list[i].content =  list[i].content + "及时锁上病床及轮椅的轮轴"
1644
+              }
1645
+
1646
+            
1378 1647
             }
1648
+
1649
+             
1379 1650
            }
1651
+        
1380 1652
           
1381 1653
           
1382 1654
            this.tableData =  list

+ 1 - 1
src/xt_pages/user/patients.vue 查看文件

@@ -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