Explorar el Código

随访表单修改

zhangyanfang hace 5 años
padre
commit
8de63cecfd

+ 8 - 1
app/followup/v1/html/fangshi-detail-10.html

@ -1172,7 +1172,7 @@
                // 完成随访状态修改
                finish: function () {
                    var vm = this
                    fangshiAPI.updateFollowStatus({ followupId: this.followupId }).then(function (res) {
                    fangshiAPI.updateFollowStatus({ followupId: this.followupId,isFlag:1 }).then(function (res) {
                        if (res.status == 200) {
                            vm.getStatus()
                            top.toastr.info("完成随访成功")
@ -1245,6 +1245,13 @@
                    fangshiAPI.getFollowupInfo({ followupId: Request['id']||'1'}).then(function (res) {
                            if (res.status == 200) {
                                res.data.status != 1 ? vm.finishedStatus = false : vm.finishedStatus = true
                                if(!vm.finishedStatus){
                                    vm.parient.patient.name=res.data.patient.name
                                    for(var i=0;i<4;i++){
                                        vm.parient.data[i].followup_doctor_name=res.data.doctorName
                                    }
                                    vm.parient.management.signature_doctor_name=res.data.doctorName
                                }
								vm.setEditBtn()
                            } else {
                                top.toastr.error(res.msg);

+ 4 - 2
app/followup/v1/html/fangshi-detail-5.html

@ -319,7 +319,7 @@
					vmP.visiting_doctor_name = data.visiting_doctor_name
				},
				getLastData:function(doctorName){
				getLastData:function(doctorName,name){
                    var vm=this
                    fangshiAPI.getLastVisitRecord({ followupClass: vm.followupClass,patientCode:vm.patientCode }).then(function (res) {
						if (res.status == 200) {
@ -330,6 +330,7 @@
							} else {
								//默认随访医生签名
								vm.postpartumVisitDetails.visiting_doctor_name=doctorName
								vm.postpartumVisitDetails.name=name
								// 居民存在上次历史记录,则代入默认信息
								if (res.data.detail) {
									vm.postpartumVisitDetails = res.data.detail
@ -390,7 +391,8 @@
							vm.patientCode=res.data.patientCode
							vm.followupClass=res.data.followupClass
							var doctorName=res.data.doctorName
							vm.getLastData(doctorName)//获取patientCode,followupClass 获取上一次数据
							var name=res.data.patient.name
							vm.getLastData(doctorName,name)//获取patientCode,followupClass 获取上一次数据
							vm.setEditBtn()
						} else {
							top.toastr.error(res.msg);

+ 4 - 2
app/followup/v1/html/fangshi-detail-7.html

@ -831,7 +831,7 @@
                    vmS.doctor_name = data.doctor_name || ""
                },
                getLastData: function (doctorName) {
                getLastData: function (doctorName,name) {
                    var vm = this
                    fangshiAPI.getLastVisitRecord({ followupClass: vm.followupClass, patientCode: vm.patientCode }).then(function (res) {
                        if (res.status == 200) {
@ -842,6 +842,7 @@
                            } else {
                                // 默认医生签名
                                vm.severeMentalDisorderData.doctor_name=doctorName
                                vm.severeMentalDisorderData.name=name
                                // 居民存在上次历史记录,则代入默认信息
                                if (res.data.detail) {
                                    vm.severeMentalDisorderData = res.data.detail
@ -950,7 +951,8 @@
							vm.patientCode=res.data.patientCode
                            vm.followupClass=res.data.followupClass
                            var doctorName=res.data.doctorName
							vm.getLastData(doctorName)//获取patientCode,followupClass 获取上一次数据
                            var name=res.data.patient.name
							vm.getLastData(doctorName,name)//获取patientCode,followupClass 获取上一次数据
                            vm.setEditBtn()
                        } else {
                            top.toastr.error(res.msg);

+ 1 - 1
app/followup/v1/html/fangshi-detail-9.html

@ -440,7 +440,7 @@
                    // 完成随访状态修改
                    finish: function () {
                        var vm = this
                        fangshiAPI.updateFollowStatus({ followupId: this.followupId }).then(function (res) {
                        fangshiAPI.updateFollowStatus({ followupId: this.followupId,isFlag:0 }).then(function (res) {
                            if (res.status == 200) {
                                vm.getStatus()
                                top.toastr.info("完成随访成功")