|
@@ -1,5 +1,4 @@
|
1
|
1
|
<template>
|
2
|
|
- <div>
|
3
|
2
|
<div>
|
4
|
3
|
<el-dialog
|
5
|
4
|
title="接诊评估"
|
|
@@ -142,7 +141,7 @@
|
142
|
141
|
>{{ item.name }}
|
143
|
142
|
</el-radio>
|
144
|
143
|
</el-radio-group>
|
145
|
|
-
|
|
144
|
+
|
146
|
145
|
</el-form-item>
|
147
|
146
|
|
148
|
147
|
<el-form-item
|
|
@@ -210,28 +209,33 @@
|
210
|
209
|
>高风险</el-radio
|
211
|
210
|
>
|
212
|
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
|
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
|
239
|
<el-form-item
|
236
|
240
|
label-width="200px"
|
237
|
241
|
label="其他跌倒风险预防措施 : "
|
|
@@ -337,50 +341,47 @@
|
337
|
341
|
</el-form>
|
338
|
342
|
<div slot="footer" class="dialog-footer">
|
339
|
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
|
346
|
>保 存</el-button
|
343
|
347
|
>
|
344
|
348
|
</div>
|
345
|
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
|
385
|
</template>
|
385
|
386
|
|
386
|
387
|
<script>
|
|
@@ -430,12 +431,13 @@ export default {
|
430
|
431
|
tumble: "",
|
431
|
432
|
his_department: "",
|
432
|
433
|
his_bed: "",
|
|
434
|
+ falldown:[],
|
433
|
435
|
},
|
434
|
436
|
precautionTwo: [],
|
|
437
|
+ arr:[],
|
435
|
438
|
infoDialogVisible:false,
|
436
|
439
|
selected_date:"",
|
437
|
|
- remark:"",
|
438
|
|
- arr:[]
|
|
440
|
+ remark:""
|
439
|
441
|
};
|
440
|
442
|
},
|
441
|
443
|
methods: {
|
|
@@ -459,22 +461,21 @@ export default {
|
459
|
461
|
}
|
460
|
462
|
this.accepts = accepts;
|
461
|
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
|
480
|
this.getPermission();
|
480
|
481
|
for (var index in this.receiveTreatmentAsses) {
|
|
@@ -500,7 +501,7 @@ export default {
|
500
|
501
|
},
|
501
|
502
|
// 复选框跌倒风险措施
|
502
|
503
|
precautionchange(){
|
503
|
|
-
|
|
504
|
+
|
504
|
505
|
if(this.precautionTwo.length>0){
|
505
|
506
|
this.$refs.receiveTreatmentAsses.clearValidate('precautionTwo');
|
506
|
507
|
}
|
|
@@ -508,38 +509,18 @@ export default {
|
508
|
509
|
|
509
|
510
|
handleComfirm: function (formName) {
|
510
|
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
|
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
|
522
|
let ParamsQuery = this.receiveTreatmentAsses;
|
542
|
|
-
|
|
523
|
+
|
543
|
524
|
console.log("ParamsQuery", ParamsQuery);
|
544
|
525
|
ParamsQuery["patient"] = this.patient.id;
|
545
|
526
|
ParamsQuery["record_date"] = this.record_date;
|
|
@@ -560,9 +541,6 @@ export default {
|
560
|
541
|
postAccepts(ParamsQuery).then((response) => {
|
561
|
542
|
if (response.data.state == 0) {
|
562
|
543
|
this.$message.error(response.data.msg);
|
563
|
|
- if(response.data.code == 600000008){
|
564
|
|
- this.infoDialogVisible = true
|
565
|
|
- }
|
566
|
544
|
return false;
|
567
|
545
|
} else {
|
568
|
546
|
this.$notify({
|
|
@@ -606,13 +584,13 @@ export default {
|
606
|
584
|
isCheckmust(name) {
|
607
|
585
|
let filedList = store.getters.xt_user.fileds;
|
608
|
586
|
for (let i = 0; i < filedList.length; i++) {
|
609
|
|
-
|
|
587
|
+
|
610
|
588
|
if (
|
611
|
589
|
filedList[i].module == 2 &&
|
612
|
590
|
filedList[i].filed_name_cn == name &&
|
613
|
591
|
filedList[i].is_write == 1
|
614
|
592
|
) {
|
615
|
|
- // name == '跌倒风险预防措施' && this.precautionTwo.length<=0
|
|
593
|
+ // name == '跌倒风险预防措施' && filedList[i].is_write == 1
|
616
|
594
|
if (name == "风险程度"||name == "病人情况"||name == '心理评估') {
|
617
|
595
|
return [
|
618
|
596
|
{ required: true, message: `请输入${name}`,trigger: ['blur','change'] },
|
|
@@ -623,21 +601,21 @@ export default {
|
623
|
601
|
trigger: ['blur','change']
|
624
|
602
|
},
|
625
|
603
|
];
|
626
|
|
- }
|
|
604
|
+ }
|
627
|
605
|
else if(name == "跌倒风险预防措施"){
|
628
|
606
|
if(this.precautionTwo.length<=0){
|
629
|
607
|
this.isrequired=false
|
630
|
608
|
return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
|
631
|
|
-
|
|
609
|
+
|
632
|
610
|
}
|
633
|
611
|
this.precautionchange()
|
634
|
612
|
this.isrequired=true
|
635
|
613
|
// return [{ required: true, message: '',trigger: ['blur','change'] }];
|
636
|
614
|
}else{
|
637
|
615
|
return [{ required: true, message: `请输入${name}`,trigger: ['blur','change'] }];
|
638
|
|
-
|
|
616
|
+
|
639
|
617
|
}
|
640
|
|
-
|
|
618
|
+
|
641
|
619
|
}
|
642
|
620
|
}
|
643
|
621
|
},
|
|
@@ -646,20 +624,28 @@ export default {
|
646
|
624
|
// for (let i = 0; i < filedList.length; i++) {
|
647
|
625
|
// if (
|
648
|
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,8 +689,7 @@ export default {
|
703
|
689
|
}
|
704
|
690
|
});
|
705
|
691
|
},
|
706
|
|
-
|
707
|
|
- saveInformation(){
|
|
692
|
+ saveInformation(){
|
708
|
693
|
var params = {
|
709
|
694
|
selected_date:this.selected_date,
|
710
|
695
|
patient_id:this.$route.query.patient_id,
|
|
@@ -749,6 +734,7 @@ export default {
|
749
|
734
|
},
|
750
|
735
|
},
|
751
|
736
|
created() {
|
|
737
|
+
|
752
|
738
|
// console.log("接诊评估", this.receiver_treatment_access);
|
753
|
739
|
var date = this.$route.query && this.$route.query.date;
|
754
|
740
|
this.record_date = date
|
|
@@ -765,7 +751,11 @@ export default {
|
765
|
751
|
// console.log("风险", this.precaution_arr);
|
766
|
752
|
this.intake_arr = getDataConfig("hemodialysis", "intake");
|
767
|
753
|
this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
|
|
754
|
+
|
768
|
755
|
},
|
|
756
|
+ // mounted(){
|
|
757
|
+ // this.isFalldown()
|
|
758
|
+ // }
|
769
|
759
|
};
|
770
|
760
|
</script>
|
771
|
761
|
|