소스 검색

新分支

28169 1 년 전
부모
커밋
9039d93815

+ 12 - 12
src/router/modules/dialysis.js 파일 보기

370
         noCache: true
370
         noCache: true
371
       }
371
       }
372
     },
372
     },
373
-    {
374
-      path: '/dialysis/print/batch/sixtyFive',
375
-      component: () =>
376
-        import('@/xt_pages/dialysis/batch_print/batch_print_order_sixtyFive'),
377
-      hidden: true,
378
-      is_menu: false,
379
-      name: 'dialysis_batch_sixtyFive',
380
-      meta: {
381
-        title: '批量打印',
382
-        noCache: true
383
-      }
384
-    },
373
+    // {
374
+    //   path: '/dialysis/print/batch/sixtyFive',
375
+    //   component: () =>
376
+    //     import('@/xt_pages/dialysis/batch_print/batch_print_order_sixtyFive'),
377
+    //   hidden: true,
378
+    //   is_menu: false,
379
+    //   name: 'dialysis_batch_sixtyFive',
380
+    //   meta: {
381
+    //     title: '批量打印',
382
+    //     noCache: true
383
+    //   }
384
+    // },
385
     // {
385
     // {
386
     //   path: '/dialysis/print/batch/fiftythree',
386
     //   path: '/dialysis/print/batch/fiftythree',
387
     //   component: () =>
387
     //   component: () =>

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 파일 보기

1471
           selected_date:this.selected_date,
1471
           selected_date:this.selected_date,
1472
           patient_id:this.$route.query.patient_id,
1472
           patient_id:this.$route.query.patient_id,
1473
           record_date:this.$route.query.date,
1473
           record_date:this.$route.query.date,
1474
-          module:2,
1474
+          module:9,
1475
           remark:this.remark,
1475
           remark:this.remark,
1476
         }
1476
         }
1477
         saveInformation(params).then(response=>{
1477
         saveInformation(params).then(response=>{

+ 122 - 132
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue 파일 보기

1
 <template>
1
 <template>
2
- <div>
3
   <div>
2
   <div>
4
   <el-dialog
3
   <el-dialog
5
     title="接诊评估"
4
     title="接诊评估"
142
           >{{ item.name }}
141
           >{{ item.name }}
143
         </el-radio>
142
         </el-radio>
144
       </el-radio-group>
143
       </el-radio-group>
145
-
144
+     
146
       </el-form-item>
145
       </el-form-item>
147
 
146
 
148
       <el-form-item
147
       <el-form-item
210
           >高风险</el-radio
209
           >高风险</el-radio
211
         >
210
         >
212
       </el-radio-group>
211
       </el-radio-group>
213
-
214
-      </el-form-item>
215
-
216
-      <el-form-item
217
-        label-width="150px"
218
-        label="跌倒风险预防措施: "
219
-        :prop="isName('跌倒风险预防措施')"
220
-        :rules="isCheckmust('跌倒风险预防措施')"
221
-        v-if="isShow('跌倒风险预防措施')"
222
-      >
223
-        <!-- isFalldown prop="precautionTwo" @change="precautionchange" isCheckmust('跌倒风险预防措施') :prop="isName('跌倒风险预防措施')" :rules="isCheckmust('跌倒风险预防措施')"
224
-           [{required: true, message: '请选择跌倒风险预防措施', trigger: 'change'}]-->
225
-        <el-checkbox-group v-model="precautionTwo" @change="precautionchange">
226
-          <el-checkbox
227
-            v-for="item in precaution_arr"
228
-            :label="item.name"
229
-            :key="item.id"
230
-            >{{ item.name }}</el-checkbox
231
-          >
232
-        </el-checkbox-group>
212
+ 
233
       </el-form-item>
213
       </el-form-item>
234
 
214
 
215
+      <div style="position: relative;">
216
+        <span v-if="isrequired" style="color: red;position: absolute;top: 10px;">*</span>
217
+        <el-form-item
218
+          label-width="138px"
219
+          label="跌倒风险预防措施: "
220
+          prop="precautionTwo"
221
+          :rules="isCheckmust('跌倒风险预防措施')"
222
+          v-if="isShow('跌倒风险预防措施')"
223
+          style="display: inline-block;"
224
+        >
225
+          <!--v-if="isShow('跌倒风险预防措施')" isFalldown prop="precautionTwo" @change="precautionchange" isCheckmust('跌倒风险预防措施')
226
+            :prop="isName('跌倒风险预防措施')" :rules="isCheckmust('跌倒风险预防措施')"
227
+            [{required: true, message: '请选择跌倒风险预防措施', trigger: 'change'}]-->
228
+            
229
+          <el-checkbox-group v-model="precautionTwo" @change="precautionchange" >
230
+            <el-checkbox
231
+              v-for="item in precaution_arr"
232
+              :label="item.name"
233
+              :key="item.id"
234
+              >{{ item.name }}</el-checkbox
235
+            >
236
+          </el-checkbox-group>
237
+        </el-form-item>
238
+      </div>
235
       <el-form-item
239
       <el-form-item
236
         label-width="200px"
240
         label-width="200px"
237
         label="其他跌倒风险预防措施 : "
241
         label="其他跌倒风险预防措施 : "
337
     </el-form>
341
     </el-form>
338
     <div slot="footer" class="dialog-footer">
342
     <div slot="footer" class="dialog-footer">
339
       <el-button @click="handleCancle">取 消</el-button>
343
       <el-button @click="handleCancle">取 消</el-button>
340
-      <!--v-if="hasPermission" -->
341
-      <el-button type="primary"  @click="handleComfirm('receiveTreatmentAsses')"
344
+      <!-- v-if="hasPermission"-->
345
+      <el-button type="primary"   @click="handleComfirm('receiveTreatmentAsses')"
342
         >保 存</el-button
346
         >保 存</el-button
343
       >
347
       >
344
     </div>
348
     </div>
345
   </el-dialog>
349
   </el-dialog>
346
 
350
 
347
-
348
- <el-dialog
349
-          title="提示"
350
-          :visible.sync="infoDialogVisible"
351
-          width="30%">
352
-          <span>
353
-           <el-form>
354
-             <el-row>
355
-               <span>申请日期:</span>
356
-                <span>
357
-                    <el-date-picker
358
-                      type="datetime"
359
-                      format="yyyy-MM-dd HH:mm"
360
-                      value-format="yyyy-MM-dd HH:mm"
361
-                      placeholder="选择时间"
362
-                      v-model="selected_date"
363
-                  ></el-date-picker>
364
-                </span>
365
-             </el-row>
366
-             <el-row>
367
-               <span>备注:</span>
368
-                <span>
369
-                   <el-input v-model="remark" style="width:200px"></el-input>
370
-                </span>
371
-             </el-row>
372
-           </el-form>
373
-
374
-          </span>
375
-          <span slot="footer" class="dialog-footer">
376
-            <el-button @click="infoDialogVisible = false">取 消</el-button>
377
-            <el-button type="primary" @click="saveInformation">确 定</el-button>
378
-          </span>
379
-        </el-dialog>
380
-
381
-  </div>
382
-
383
-
351
+  
352
+  <el-dialog
353
+      title="提示"
354
+      :visible.sync="infoDialogVisible"
355
+      width="30%">
356
+      <span>
357
+        <el-form>
358
+          <el-row>
359
+            <span>申请日期:</span>
360
+            <span>
361
+                <el-date-picker
362
+                  type="datetime"
363
+                  format="yyyy-MM-dd HH:mm"
364
+                  value-format="yyyy-MM-dd HH:mm"
365
+                  placeholder="选择时间"
366
+                  v-model="selected_date"
367
+              ></el-date-picker>
368
+            </span>
369
+          </el-row>
370
+          <el-row>
371
+            <span>备注:</span>
372
+            <span>
373
+                <el-input v-model="remark" style="width:200px"></el-input>
374
+            </span>
375
+          </el-row>
376
+        </el-form>
377
+         
378
+      </span>
379
+      <span slot="footer" class="dialog-footer">
380
+        <el-button @click="infoDialogVisible = false">取 消</el-button>
381
+        <el-button type="primary" @click="saveInformation">确 定</el-button>
382
+      </span>
383
+    </el-dialog>
384
+   </div>
384
 </template>
385
 </template>
385
 
386
 
386
 <script>
387
 <script>
430
         tumble: "",
431
         tumble: "",
431
         his_department: "",
432
         his_department: "",
432
         his_bed: "",
433
         his_bed: "",
434
+        falldown:[],
433
       },
435
       },
434
       precautionTwo: [],
436
       precautionTwo: [],
437
+      arr:[],
435
       infoDialogVisible:false,
438
       infoDialogVisible:false,
436
       selected_date:"",
439
       selected_date:"",
437
-      remark:"",
438
-      arr:[]
440
+      remark:""
439
     };
441
     };
440
   },
442
   },
441
   methods: {
443
   methods: {
459
       }
461
       }
460
       this.accepts = accepts;
462
       this.accepts = accepts;
461
       // console.log("accepts", accepts);
463
       // console.log("accepts", accepts);
462
-      var arr = [];
463
-      if (this.accepts.precaution) {
464
-        var precaution = this.accepts.precaution.split(",");
465
-        // console.log("precaution", precaution);
466
-        // console.log("hhh", this.precaution_arr);
467
-        for (let i = 0; i < precaution.length; i++) {
468
-          for (let j = 0; j < this.precaution_arr.length; j++) {
469
-            if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
470
-              // console.log("aaaa");
471
-              arr.push(this.precaution_arr[j].name);
472
-            }
473
-          }
474
-        }
475
-        this.precautionTwo = arr;
476
-        // console.log("arr", arr);
477
-      }
464
+      // var arr = [];
465
+      // if (this.accepts.precaution) {
466
+      //   var precaution = this.accepts.precaution.split(",");
467
+      //   // console.log("precaution", precaution);
468
+      //   // console.log("hhh", this.precaution_arr);
469
+      //   for (let i = 0; i < precaution.length; i++) {
470
+      //     for (let j = 0; j < this.precaution_arr.length; j++) {
471
+      //       if (parseInt(precaution[i]) == this.precaution_arr[j].id) {
472
+      //         // console.log("aaaa");
473
+      //         this.arr.push(this.precaution_arr[j].name);
474
+      //       }
475
+      //     }
476
+      //   }
477
+      //   this.precautionTwo = this.arr;
478
+      // }
478
 
479
 
479
       this.getPermission();
480
       this.getPermission();
480
       for (var index in this.receiveTreatmentAsses) {
481
       for (var index in this.receiveTreatmentAsses) {
500
     },
501
     },
501
     // 复选框跌倒风险措施
502
     // 复选框跌倒风险措施
502
     precautionchange(){
503
     precautionchange(){
503
-
504
+     
504
       if(this.precautionTwo.length>0){
505
       if(this.precautionTwo.length>0){
505
         this.$refs.receiveTreatmentAsses.clearValidate('precautionTwo');
506
         this.$refs.receiveTreatmentAsses.clearValidate('precautionTwo');
506
       }
507
       }
508
 
509
 
509
     handleComfirm: function (formName) {
510
     handleComfirm: function (formName) {
510
       // var arr = [];
511
       // var arr = [];
511
-        if(this.precaution_arr!=null && this.precaution_arr.length >0){
512
-        for (let i = 0; i < this.precaution_arr.length; i++) {
513
-          for (let j = 0; j < this.precautionTwo.length; j++) {
514
-            if (this.precaution_arr[i].name == this.precautionTwo[j]) {
515
-              this.arr.push(this.precaution_arr[i].id);
516
-            }
512
+      for (let i = 0; i < this.precaution_arr.length; i++) {
513
+        for (let j = 0; j < this.precautionTwo.length; j++) {
514
+          if (this.precaution_arr[i].name == this.precautionTwo[j]) {
515
+            this.arr.push(this.precaution_arr[i].id);
517
           }
516
           }
518
         }
517
         }
519
-        var obj = this.arr.join(",");
520
-      }
521
-
518
+      } 
519
+      // this.precautionchange()
520
+      var obj = this.arr.join(",");
522
       this.receiveTreatmentAsses.precaution = obj;
521
       this.receiveTreatmentAsses.precaution = obj;
523
-
524
-
525
-      if(this.precaution_arr!=null){
526
-        for (let i = 0; i < this.precaution_arr.length; i++) {
527
-               for (let j = 0; j < this.precautionTwo.length; j++) {
528
-                 if (this.precaution_arr[i].name == this.precautionTwo[j]) {
529
-                   this.arr.push(this.precaution_arr[i].id);
530
-                 }
531
-               }
532
-             }
533
-         if(this.arr!=null && this.arr.length > 0){
534
-          var obj = this.arr.join(",");
535
-          this.receiveTreatmentAsses.precaution = obj;
536
-         }
537
-
538
-      }
539
-
540
-
541
       let ParamsQuery = this.receiveTreatmentAsses;
522
       let ParamsQuery = this.receiveTreatmentAsses;
542
-
523
+      
543
       console.log("ParamsQuery", ParamsQuery);
524
       console.log("ParamsQuery", ParamsQuery);
544
       ParamsQuery["patient"] = this.patient.id;
525
       ParamsQuery["patient"] = this.patient.id;
545
       ParamsQuery["record_date"] = this.record_date;
526
       ParamsQuery["record_date"] = this.record_date;
560
           postAccepts(ParamsQuery).then((response) => {
541
           postAccepts(ParamsQuery).then((response) => {
561
             if (response.data.state == 0) {
542
             if (response.data.state == 0) {
562
               this.$message.error(response.data.msg);
543
               this.$message.error(response.data.msg);
563
-               if(response.data.code == 600000008){
564
-                 this.infoDialogVisible = true
565
-               }
566
               return false;
544
               return false;
567
             } else {
545
             } else {
568
               this.$notify({
546
               this.$notify({
606
     isCheckmust(name) {
584
     isCheckmust(name) {
607
       let filedList = store.getters.xt_user.fileds;
585
       let filedList = store.getters.xt_user.fileds;
608
       for (let i = 0; i < filedList.length; i++) {
586
       for (let i = 0; i < filedList.length; i++) {
609
-
587
+        
610
         if (
588
         if (
611
           filedList[i].module == 2 &&
589
           filedList[i].module == 2 &&
612
           filedList[i].filed_name_cn == name &&
590
           filedList[i].filed_name_cn == name &&
613
           filedList[i].is_write == 1
591
           filedList[i].is_write == 1
614
         ) {
592
         ) {
615
-          // name == '跌倒风险预防措施' && this.precautionTwo.length<=0
593
+          // name == '跌倒风险预防措施' && filedList[i].is_write == 1
616
           if (name == "风险程度"||name == "病人情况"||name == '心理评估') {
594
           if (name == "风险程度"||name == "病人情况"||name == '心理评估') {
617
             return [
595
             return [
618
               { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
596
               { required: true, message: `请输入${name}`,trigger: ['blur','change'] },
623
                 trigger: ['blur','change']
601
                 trigger: ['blur','change']
624
               },
602
               },
625
             ];
603
             ];
626
-          }
604
+          } 
627
           else if(name == "跌倒风险预防措施"){
605
           else if(name == "跌倒风险预防措施"){
628
             if(this.precautionTwo.length<=0){
606
             if(this.precautionTwo.length<=0){
629
               this.isrequired=false
607
               this.isrequired=false
630
               return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
608
               return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
631
-
609
+              
632
             }
610
             }
633
             this.precautionchange()
611
             this.precautionchange()
634
             this.isrequired=true
612
             this.isrequired=true
635
             // return [{ required: true, message: '',trigger: ['blur','change'] }];
613
             // return [{ required: true, message: '',trigger: ['blur','change'] }];
636
           }else{
614
           }else{
637
             return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
615
             return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
638
-
616
+            
639
           }
617
           }
640
-
618
+          
641
         }
619
         }
642
       }
620
       }
643
     },
621
     },
646
     //   for (let i = 0; i < filedList.length; i++) {
624
     //   for (let i = 0; i < filedList.length; i++) {
647
     //     if (
625
     //     if (
648
     //       filedList[i].module == 2 &&
626
     //       filedList[i].module == 2 &&
649
-    //       filedList[i].filed_name_cn == name &&
650
-    //       filedList[i].is_write == 1
627
+    //       filedList[i].filed_name_cn == name 
628
+          
651
     //     ) {
629
     //     ) {
652
-    //       if (name == "跌倒风险预防措施" && this.precautionTwo.length<=0) {
653
-    //         return [
654
-    //           { required: true, message: `请选择${name}`,trigger: ['blur','change'] },
655
-    //           {
656
-    //             required: true,
657
-    //             pattern: /^[1-9]\d*$/,
658
-    //             message: `请选择${name}`,
659
-    //             trigger: ['blur','change']
660
-    //           },
661
-    //         ];
662
-    //       }
630
+    //       // &&filedList[i].is_write == 1
631
+    //       if (name == "跌倒风险预防措施") {
632
+    //         if(this.precautionTwo.length<=0){
633
+    //             return [
634
+    //             { required: true, message: `请选择${name}`,trigger: ['blur','change'] },
635
+    //             {
636
+    //               required: true,
637
+    //               pattern: /^[1-9]\d*$/,
638
+    //               message: `请选择${name}`,
639
+    //               trigger: ['blur','change']
640
+    //             },
641
+    //           ];
642
+    //         }
643
+    //         this.precautionchange()
644
+    //         return[{ required: true, message: '',trigger: ['blur','change'] }]
645
+    //         // this.$refs.receiveTreatmentAsses.clearValidate('precautionTwo');
646
+             
647
+    //       } 
648
+          
663
     //     }
649
     //     }
664
     //   }
650
     //   }
665
     // },
651
     // },
703
           }
689
           }
704
         });
690
         });
705
     },
691
     },
706
-
707
-   saveInformation(){
692
+    saveInformation(){
708
         var params = {
693
         var params = {
709
           selected_date:this.selected_date,
694
           selected_date:this.selected_date,
710
           patient_id:this.$route.query.patient_id,
695
           patient_id:this.$route.query.patient_id,
749
     },
734
     },
750
   },
735
   },
751
   created() {
736
   created() {
737
+    
752
     // console.log("接诊评估", this.receiver_treatment_access);
738
     // console.log("接诊评估", this.receiver_treatment_access);
753
     var date = this.$route.query && this.$route.query.date;
739
     var date = this.$route.query && this.$route.query.date;
754
     this.record_date = date
740
     this.record_date = date
765
     // console.log("风险", this.precaution_arr);
751
     // console.log("风险", this.precaution_arr);
766
     this.intake_arr = getDataConfig("hemodialysis", "intake");
752
     this.intake_arr = getDataConfig("hemodialysis", "intake");
767
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
753
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
754
+    
768
   },
755
   },
756
+  // mounted(){
757
+  //   this.isFalldown()
758
+  // }
769
 };
759
 };
770
 </script>
760
 </script>
771
 
761
 

+ 1 - 1
src/xt_pages/dialysis/details/dialog/finish_dialog.vue 파일 보기

577
           selected_date:this.selected_date,
577
           selected_date:this.selected_date,
578
           patient_id:this.$route.query.patient_id,
578
           patient_id:this.$route.query.patient_id,
579
           record_date:this.$route.query.date,
579
           record_date:this.$route.query.date,
580
-          module:1,
580
+          module:8,
581
           remark:this.remark,
581
           remark:this.remark,
582
         }
582
         }
583
         console.log("params32222222222----",params)
583
         console.log("params32222222222----",params)

+ 1 - 1
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue 파일 보기

525
           selected_date:this.selected_date,
525
           selected_date:this.selected_date,
526
           patient_id:this.$route.query.patient_id,
526
           patient_id:this.$route.query.patient_id,
527
           record_date:this.$route.query.date,
527
           record_date:this.$route.query.date,
528
-          module:1,
528
+          module:10,
529
           remark:this.remark,
529
           remark:this.remark,
530
         }
530
         }
531
        
531
        

+ 13 - 13
src/xt_permission.js 파일 보기

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))