|
@@ -482,6 +482,27 @@
|
482
|
482
|
<el-button type="primary" @click="updatePatientLapse('form')">保存</el-button>
|
483
|
483
|
</span>
|
484
|
484
|
</el-dialog>
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+ <el-dialog
|
|
488
|
+ title="转出提示"
|
|
489
|
+ :visible.sync="laspDialogVisible"
|
|
490
|
+ width="50%">
|
|
491
|
+ <span>
|
|
492
|
+ <div>
|
|
493
|
+ 患者转出后,系统会将今日之后的排班清除,透析方案停用,长期医嘱停用,确定转出吗?如不需要清除排班,请先勾选下方选项,再点击确认。
|
|
494
|
+ </div>
|
|
495
|
+ <div>
|
|
496
|
+ <el-checkbox-group v-model="check_status">
|
|
497
|
+ <el-checkbox v-for="city in cityList" :label="city" :key="city">{{city}}</el-checkbox>
|
|
498
|
+ </el-checkbox-group>
|
|
499
|
+ </div>
|
|
500
|
+ </span>
|
|
501
|
+ <span slot="footer" class="dialog-footer">
|
|
502
|
+ <el-button @click="laspDialogVisible = false">取 消</el-button>
|
|
503
|
+ <el-button type="primary" @click="saveLapseSummary">确 定</el-button>
|
|
504
|
+ </span>
|
|
505
|
+ </el-dialog>
|
485
|
506
|
|
486
|
507
|
</div>
|
487
|
508
|
|
|
@@ -491,7 +512,6 @@
|
491
|
512
|
const moment = require('moment')
|
492
|
513
|
import PatientSidebar from './components/PatientSidebar'
|
493
|
514
|
import { savePatientLapse,getAllDoctor,deletePatientLapsoRrecord,getPatientById,getPatientLapseRecord,getPatientLapsoSummary,updatePatientLapseRecord,getPatientLapsoList} from '@/api/patient'
|
494
|
|
-
|
495
|
515
|
import { jsGetAge, uParseTime } from '@/utils/tools'
|
496
|
516
|
import { getDataConfig } from '@/utils/data'
|
497
|
517
|
import multiSelectBox from '../dialysis/details/dialog/MultiSelectBox'
|
|
@@ -606,6 +626,12 @@
|
606
|
626
|
patient_address:"",
|
607
|
627
|
start_time_one:"",
|
608
|
628
|
end_time_one:"",
|
|
629
|
+ laspDialogVisible:false,
|
|
630
|
+ check_status:false,
|
|
631
|
+ cityOneList:["不清除排班","不停用方案","不停用医嘱","不清除患者绑定"],
|
|
632
|
+ cityList:["不清除排班"],
|
|
633
|
+ city_check:2,
|
|
634
|
+ objParams:{}
|
609
|
635
|
}
|
610
|
636
|
},
|
611
|
637
|
methods: {
|
|
@@ -746,10 +772,15 @@
|
746
|
772
|
end_time:this.end_time,
|
747
|
773
|
start_time_one:this.start_time_one,
|
748
|
774
|
end_time_one:this.end_time_one,
|
|
775
|
+ is_check:2,
|
749
|
776
|
}
|
|
777
|
+ this.objParams = params
|
750
|
778
|
console.log("params=====",params)
|
751
|
|
- savePatientLapse(params).then(response=>{
|
752
|
|
- if(response.data.state==1){
|
|
779
|
+ if(this.lapse_type == 2 || this.lapse_type == 3){
|
|
780
|
+ this.laspDialogVisible = true
|
|
781
|
+ }else{
|
|
782
|
+ savePatientLapse(params).then(response=>{
|
|
783
|
+ if(response.data.state==1){
|
753
|
784
|
var record = response.data.data.record
|
754
|
785
|
this.$message.success("保存成功!")
|
755
|
786
|
this.dialogVisible = false
|
|
@@ -757,8 +788,34 @@
|
757
|
788
|
this.lapse_reason = ""
|
758
|
789
|
this.getlist()
|
759
|
790
|
|
760
|
|
- }
|
761
|
|
- })
|
|
791
|
+ }
|
|
792
|
+ })
|
|
793
|
+ }
|
|
794
|
+
|
|
795
|
+ },
|
|
796
|
+ saveLapseSummary(){
|
|
797
|
+ var is_check = 2
|
|
798
|
+ if(this.check_status == true){
|
|
799
|
+ is_check =1
|
|
800
|
+ }
|
|
801
|
+ if(this.check_status == false){
|
|
802
|
+ is_check = 2
|
|
803
|
+ }
|
|
804
|
+ this.objParams.is_check = is_check
|
|
805
|
+ console.log("params======",this.objParams)
|
|
806
|
+
|
|
807
|
+ savePatientLapse(this.objParams).then(response=>{
|
|
808
|
+ if(response.data.state==1){
|
|
809
|
+ var record = response.data.data.record
|
|
810
|
+ this.$message.success("保存成功!")
|
|
811
|
+ this.dialogVisible = false
|
|
812
|
+ this.remark = ""
|
|
813
|
+ this.lapse_reason = ""
|
|
814
|
+ this.getlist()
|
|
815
|
+
|
|
816
|
+ }
|
|
817
|
+ })
|
|
818
|
+
|
762
|
819
|
},
|
763
|
820
|
getlist(){
|
764
|
821
|
var params = {
|
|
@@ -849,8 +906,7 @@
|
849
|
906
|
|
850
|
907
|
},
|
851
|
908
|
created() {
|
852
|
|
- this.record_date = moment(new Date()).format('YYYY-MM-DD')
|
853
|
|
-
|
|
909
|
+ this.record_date = moment(new Date()).format('YYYY-MM-DD')
|
854
|
910
|
const id = this.$route.params && this.$route.params.id
|
855
|
911
|
console.log('id是设么', id)
|
856
|
912
|
this.patientID = parseInt(id)
|