Browse Source

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

yq1 1 year ago
parent
commit
1c00b94e2d

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

1
+import request from '@/utils/request'
1
 export function getAllNurseList(params){
2
 export function getAllNurseList(params){
2
 
3
 
3
     return request({
4
     return request({

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

43
                       <td>
43
                       <td>
44
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
44
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
45
                           <span  v-for="item in jiwang" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
45
                           <span  v-for="item in jiwang" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
46
-                            <label><input type="checkbox" name="ball" :value="item.content" />&nbsp;{{ item.content }}</label>
46
+                            <label><input type="checkbox" name="ball" :value="item.content"  v-model="item.jiwang_check"/>&nbsp;{{ item.content }}</label>
47
                           </span>
47
                           </span>
48
                         </div>
48
                         </div>
49
                       </td>
49
                       </td>
53
                       <td>
53
                       <td>
54
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
54
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
55
                           <span v-for="item in yishizt" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
55
                           <span v-for="item in yishizt" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
56
-                            <label><input type="checkbox" name="ball" :value="item.content" />&nbsp;{{ item.content }}</label>
56
+                            <label><input type="checkbox" name="ball" :value="item.content"  v-model="item.yishizt_check"/>&nbsp;{{ item.content }}</label>
57
                           </span>
57
                           </span>
58
                         </div>
58
                         </div>
59
                       </td>
59
                       </td>
63
                       <td>
63
                       <td>
64
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
64
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
65
                           <span v-for="item in ganguan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
65
                           <span v-for="item in ganguan" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
66
-                            <label><input type="checkbox" name="ball" :value="item.content" />&nbsp;{{ item.content }}</label>
66
+                            <label><input type="checkbox" name="ball" :value="item.content" v-model="item.ganguan_check"/>&nbsp;{{ item.content }}</label>
67
                           </span>
67
                           </span>
68
                         </div>
68
                         </div>
69
                       </td>
69
                       </td>
73
                       <td>
73
                       <td>
74
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
74
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
75
                           <span v-for="item in shentizk" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
75
                           <span v-for="item in shentizk" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
76
-                            <label><input type="checkbox" name="ball" :value="item.content" />&nbsp;{{ item.content }}</label>
76
+                            <label><input type="checkbox" name="ball" :value="item.content" v-model="item.shentizk_check"/>&nbsp;{{ item.content }}</label>
77
                           </span>
77
                           </span>
78
                         </div>
78
                         </div>
79
                       </td>
79
                       </td>
83
                       <td>
83
                       <td>
84
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
84
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
85
                           <span v-for="item in syyaowu" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
85
                           <span v-for="item in syyaowu" class="ttbwzz-type-a" @change="handleCheckedCitiesChange">
86
-                            <label><input type="checkbox" name="ball" :value="item.content" />&nbsp;{{ item.content }}</label>
86
+                            <label><input type="checkbox" name="ball" :value="item.content"  v-model="item.syyaowu_check"/>&nbsp;{{ item.content }}</label>
87
                           </span>
87
                           </span>
88
                         </div>
88
                         </div>
89
                       </td>
89
                       </td>
93
                       <td>
93
                       <td>
94
                         <div class="jiange">
94
                         <div class="jiange">
95
                           <span v-for="item in paixie" class="rightjiange" @change="handleCheckedCitiesChange">
95
                           <span v-for="item in paixie" class="rightjiange" @change="handleCheckedCitiesChange">
96
-                            <label><input type="checkbox" name="ball" :value="item.content" />&nbsp;{{ item.content }}</label>
96
+                            <label><input type="checkbox" name="ball" :value="item.content" v-model="item.paixie_check" />&nbsp;{{ item.content }}</label>
97
                           </span>
97
                           </span>
98
                         </div>
98
                         </div>
99
 
99
 
104
                       <td>
104
                       <td>
105
                         <div class="jiange">
105
                         <div class="jiange">
106
                           <span v-for="item in zilinl" class="rightjiange" @change="handleCheckedCitiesChange">
106
                           <span v-for="item in zilinl" class="rightjiange" @change="handleCheckedCitiesChange">
107
-                            <label><input type="checkbox" name="ball" :value="item.content" />&nbsp;{{ item.content }}</label>
107
+                            <label><input type="checkbox" name="ball" :value="item.content" v-model="item.zilinl_check"/>&nbsp;{{ item.content }}</label>
108
                           </span>
108
                           </span>
109
                         </div>
109
                         </div>
110
 
110
 
131
                       <td>
131
                       <td>
132
                         <div class="jiange">
132
                         <div class="jiange">
133
                           <span v-for="item in xiaoguo" class="rightjiange">
133
                           <span v-for="item in xiaoguo" class="rightjiange">
134
-                            <label><input type="checkbox" name="ball" value="volleyball" />&nbsp;{{ item.content }}</label>
134
+                            <label><input type="checkbox" name="ball" value="volleyball" v-model="item.xiaoguo_check" />&nbsp;{{ item.content }}</label>
135
                           </span>
135
                           </span>
136
                         </div>
136
                         </div>
137
                       </td>
137
                       </td>
143
                 <div>
143
                 <div>
144
                   <span>评估日期:</span>
144
                   <span>评估日期:</span>
145
                   <el-date-picker
145
                   <el-date-picker
146
-                    v-model="pingdate"
146
+                    v-model="record_date"
147
                     type="date"
147
                     type="date"
148
                     placeholder="选择日期"
148
                     placeholder="选择日期"
149
                     :clearable="false"
149
                     :clearable="false"
150
+                    format="yyyy-MM-dd"
151
+                    value-format="yyyy-MM-dd"
150
                     style="width: 150px;">
152
                     style="width: 150px;">
151
                   </el-date-picker>
153
                   </el-date-picker>
152
                 </div>
154
                 </div>
153
                 <div>
155
                 <div>
154
                   <span>护士:</span>
156
                   <span>护士:</span>
155
-                  <el-select v-model="Nurse" placeholder="请选择" style="width:120px;">
157
+                  <el-select v-model="admin_user_id" placeholder="请选择" style="width:120px;">
156
                     <el-option
158
                     <el-option
157
-                      v-for="item in options"
158
-                      :key="item.value"
159
-                      :label="item.label"
160
-                      :value="item.value"
159
+                      v-for="item in nurseList"
160
+                      :key="item.admin_user_id"
161
+                      :label="item.user_name"
162
+                      :value="item.admin_user_id"
161
                       >
163
                       >
162
                     </el-option>
164
                     </el-option>
163
                   </el-select>
165
                   </el-select>
164
                 </div>
166
                 </div>
165
-                <el-button type="primary" >确认</el-button>
167
+                <el-button type="primary" @click="toDialog">确认</el-button>
166
               </div>
168
               </div>
167
             </div>
169
             </div>
168
             <div style="width: 49%;">
170
             <div style="width: 49%;">
416
                             <el-date-picker
418
                             <el-date-picker
417
                               v-model="pingdate"
419
                               v-model="pingdate"
418
                               type="date"
420
                               type="date"
421
+                              format="yyyy-MM-dd"
422
+                              value-format="yyyy-MM-dd"
419
                               placeholder="选择日期"
423
                               placeholder="选择日期"
420
                               :clearable="false"
424
                               :clearable="false"
421
-                              style="width: 120px;">
425
+                              style="width: 140px;">
422
                             </el-date-picker>
426
                             </el-date-picker>
423
                           </div>
427
                           </div>
424
                           <div style="flex: 1;">
428
                           <div style="flex: 1;">
425
                             <span v-for="item in touxidiedao" style="margin-right:10px">
429
                             <span v-for="item in touxidiedao" style="margin-right:10px">
426
-                              <label><input type="checkbox" name="ball" value="volleyball" />&nbsp{{ item.content }}</label>
430
+                              <label><input type="checkbox" name="ball" value="volleyball"  v-model="item.touxidiedao_check"/>&nbsp{{ item.content }}</label>
427
                             </span>
431
                             </span>
428
                           </div>
432
                           </div>
429
                         </div>
433
                         </div>
559
         is_check_eighteen:false,
563
         is_check_eighteen:false,
560
         is_check_nineteen:false,
564
         is_check_nineteen:false,
561
         is_check_nineteen:false,
565
         is_check_nineteen:false,
566
+        nurseList:[],
567
+        admin_user_id:"",
568
+        record_date:"",
562
       }
569
       }
563
 
570
 
564
     },
571
     },
606
         getAllNurseList().then(response=>{
613
         getAllNurseList().then(response=>{
607
            if(response.data.state ==1){
614
            if(response.data.state ==1){
608
              var nurseList  = response.data.data.nurseList
615
              var nurseList  = response.data.data.nurseList
616
+
617
+             this.nurseList =nurseList
609
            }
618
            }
610
         })
619
         })
620
+      },
621
+      toDialog(){
622
+         var is_age =0
623
+         if(this.age_check == false){
624
+             is_age = 2
625
+         } 
626
+         if(this.age_check == true){
627
+             is_age =1
628
+         }
629
+
630
+         var is_jiwang=0
631
+         if(this.jiwang_check == false){
632
+             is_jiwang =2
633
+         }
634
+         if(this.jiwang_check == true){
635
+            is_jiwang =1
636
+         }
637
+
638
+         var is_yishizt =0 
639
+         if(this.yishizt_check == false){
640
+            is_yishizt = 2
641
+         } 
642
+         if(this.yishizt_check == true){
643
+            is_yishizt = 1
644
+         }
645
+
646
+         var is_ganguan= 0
647
+         if(this.is_ganguan_check == false){
648
+            is_ganguan = 2
649
+         }
650
+         if(this.is_ganguan_check == true){
651
+            is_ganguan =1
652
+         }
653
+         var params = {
654
+
655
+         }
656
+        saveFllassessmentList().then(response=>{
657
+
658
+        })
611
       }
659
       }
612
     }
660
     }
613
   }
661
   }

+ 6 - 3
src/xt_pages/user/inspection.vue View File

791
          
791
          
792
        
792
        
793
         this.form.formItem = []
793
         this.form.formItem = []
794
+        // console.log("hhhhhhhhhhhhh",this.project.inspection_reference)
795
+        // console.log("inspectionsMap",this.inspectionsMap)
794
         for (var index in this.project.inspection_reference) {
796
         for (var index in this.project.inspection_reference) {
795
           if(this.org_id ==10278 || this.org_id ==10138 || this.org_id == 0){
797
           if(this.org_id ==10278 || this.org_id ==10138 || this.org_id == 0){
796
             this.form.formItem.push({
798
             this.form.formItem.push({
797
-              id: this.project.inspection_reference[index].item_id in this.inspectionsMap ? this.inspectionsMap[this.project.inspection_reference[index].id].item_id : 0,
799
+              id: this.project.inspection_reference[index].id in this.inspectionsMap ? this.inspectionsMap[this.project.inspection_reference[index].id].id : 0,
798
               project_id: this.project.inspection_reference[index].project_id,
800
               project_id: this.project.inspection_reference[index].project_id,
799
               project_name: this.project.inspection_reference[index].project_name,
801
               project_name: this.project.inspection_reference[index].project_name,
800
               item_id: this.project.inspection_reference[index].id,
802
               item_id: this.project.inspection_reference[index].id,
801
               item: this.project.inspection_reference[index].item,
803
               item: this.project.inspection_reference[index].item,
802
               item_name: this.project.inspection_reference[index].item_name,
804
               item_name: this.project.inspection_reference[index].item_name,
803
               range_type: this.project.inspection_reference[index].range_type,
805
               range_type: this.project.inspection_reference[index].range_type,
804
-              value: this.project.inspection_reference[index].id in this.inspectionsMap ? this.inspectionsMap[this.project.inspection_reference[index].id].inspect_value : '',
806
+              value: this.project.inspection_reference[index].item_id in this.inspectionsMap ? this.inspectionsMap[this.project.inspection_reference[index].item_id].inspect_value : '',
805
               select_options: this.project.inspection_reference[index].range_options.split(','),
807
               select_options: this.project.inspection_reference[index].range_options.split(','),
806
-              unit: this.project.inspection_reference[index].unit
808
+              unit: this.project.inspection_reference[index].unit,
809
+              item_id:parseInt(this.project.inspection_reference[index].item_id) ,
807
             })
810
             })
808
           }else{
811
           }else{
809
             this.form.formItem.push({
812
             this.form.formItem.push({