浏览代码

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

yq1 1年前
父节点
当前提交
1c00b94e2d
共有 3 个文件被更改,包括 72 次插入20 次删除
  1. 1 0
      src/api/fallassement.js
  2. 65 17
      src/xt_pages/user/evaluationtool/Fallassessment.vue
  3. 6 3
      src/xt_pages/user/inspection.vue

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

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

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

@@ -43,7 +43,7 @@
43 43
                       <td>
44 44
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
45 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 47
                           </span>
48 48
                         </div>
49 49
                       </td>
@@ -53,7 +53,7 @@
53 53
                       <td>
54 54
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
55 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 57
                           </span>
58 58
                         </div>
59 59
                       </td>
@@ -63,7 +63,7 @@
63 63
                       <td>
64 64
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
65 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 67
                           </span>
68 68
                         </div>
69 69
                       </td>
@@ -73,7 +73,7 @@
73 73
                       <td>
74 74
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
75 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 77
                           </span>
78 78
                         </div>
79 79
                       </td>
@@ -83,7 +83,7 @@
83 83
                       <td>
84 84
                         <div style="display: flex;flex-wrap: wrap;padding:4px 0 4px 8px;">
85 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 87
                           </span>
88 88
                         </div>
89 89
                       </td>
@@ -93,7 +93,7 @@
93 93
                       <td>
94 94
                         <div class="jiange">
95 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 97
                           </span>
98 98
                         </div>
99 99
 
@@ -104,7 +104,7 @@
104 104
                       <td>
105 105
                         <div class="jiange">
106 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 108
                           </span>
109 109
                         </div>
110 110
 
@@ -131,7 +131,7 @@
131 131
                       <td>
132 132
                         <div class="jiange">
133 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 135
                           </span>
136 136
                         </div>
137 137
                       </td>
@@ -143,26 +143,28 @@
143 143
                 <div>
144 144
                   <span>评估日期:</span>
145 145
                   <el-date-picker
146
-                    v-model="pingdate"
146
+                    v-model="record_date"
147 147
                     type="date"
148 148
                     placeholder="选择日期"
149 149
                     :clearable="false"
150
+                    format="yyyy-MM-dd"
151
+                    value-format="yyyy-MM-dd"
150 152
                     style="width: 150px;">
151 153
                   </el-date-picker>
152 154
                 </div>
153 155
                 <div>
154 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 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 164
                     </el-option>
163 165
                   </el-select>
164 166
                 </div>
165
-                <el-button type="primary" >确认</el-button>
167
+                <el-button type="primary" @click="toDialog">确认</el-button>
166 168
               </div>
167 169
             </div>
168 170
             <div style="width: 49%;">
@@ -416,14 +418,16 @@
416 418
                             <el-date-picker
417 419
                               v-model="pingdate"
418 420
                               type="date"
421
+                              format="yyyy-MM-dd"
422
+                              value-format="yyyy-MM-dd"
419 423
                               placeholder="选择日期"
420 424
                               :clearable="false"
421
-                              style="width: 120px;">
425
+                              style="width: 140px;">
422 426
                             </el-date-picker>
423 427
                           </div>
424 428
                           <div style="flex: 1;">
425 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 431
                             </span>
428 432
                           </div>
429 433
                         </div>
@@ -559,6 +563,9 @@
559 563
         is_check_eighteen:false,
560 564
         is_check_nineteen:false,
561 565
         is_check_nineteen:false,
566
+        nurseList:[],
567
+        admin_user_id:"",
568
+        record_date:"",
562 569
       }
563 570
 
564 571
     },
@@ -606,8 +613,49 @@
606 613
         getAllNurseList().then(response=>{
607 614
            if(response.data.state ==1){
608 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 查看文件

@@ -791,19 +791,22 @@ export default {
791 791
          
792 792
        
793 793
         this.form.formItem = []
794
+        // console.log("hhhhhhhhhhhhh",this.project.inspection_reference)
795
+        // console.log("inspectionsMap",this.inspectionsMap)
794 796
         for (var index in this.project.inspection_reference) {
795 797
           if(this.org_id ==10278 || this.org_id ==10138 || this.org_id == 0){
796 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 800
               project_id: this.project.inspection_reference[index].project_id,
799 801
               project_name: this.project.inspection_reference[index].project_name,
800 802
               item_id: this.project.inspection_reference[index].id,
801 803
               item: this.project.inspection_reference[index].item,
802 804
               item_name: this.project.inspection_reference[index].item_name,
803 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 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 811
           }else{
809 812
             this.form.formItem.push({