Browse Source

访视表单修改

zhangyanfang 5 years ago
parent
commit
d098e9f5aa

+ 3 - 3
app/followup/v1/html/fangshi-detail-5,6.html

@ -275,9 +275,9 @@
					fangshiAPI.getPostpartumVisitDetails({ followupId: this.followupId || '3' }).then(function (res) {
						if (res.status == 200) {
							var data = res.data
							vm.postpartumVisitDetails=data
							var vmP = vm.postpartumVisitDetails
							if (data != null) {
								vm.postpartumVisitDetails = data
								var vmP = vm.postpartumVisitDetails
								vmP.breast_status = data.breast_status ? data.breast_status.toString() : ''
								vmP.lochia_status = data.lochia_status ? data.lochia_status.toString() : ''
								vmP.uterus_status = data.uterus_status ? data.uterus_status.toString() : ''
@ -327,7 +327,7 @@
							vm.postpartumVisitDetails.other_guide = '1'
						}
					})
					this.postpartumVisitDetails.create_time=null
					this.postpartumVisitDetails.create_time = null
					this.postpartumVisitDetails.version = this.version	//版本号
					fangshiAPI.savePostpartumVisitDetails({ followupId: this.followupId || '3', postpartumVisitDetails: JSON.stringify(this.postpartumVisitDetails) }).then(function (res) {
						if (res.status == 200) {

+ 8 - 6
component/followup/follow-bottom.js

@ -18,8 +18,8 @@ Vue.component('follow-bottom', {
		return {
			followUpList: [],
			curPage: 1,
			followUpData:{},
			imgSrc:'../../images/d-male.png'
			followUpData: {},
			imgSrc: '../../images/d-male.png'
		}
	},
	watch: {
@ -32,11 +32,13 @@ Vue.component('follow-bottom', {
	},
	methods: {
		getData: function () {
			var vm=this
			fangshiAPI.findByFollowupId({ followupId: this.followupid||'1'}).then(function (res) {
			var vm = this
			fangshiAPI.findByFollowupId({ followupId: this.followupid || '1' }).then(function (res) {
				if (res.status == 200) {
					var data=res.data
					vm.followUpData=data
					var data = res.data
					if (data != null) {
						vm.followUpData = data
					}
					// vm.imgSrc=data.img?data.img:''
				} else {
					top.toastr.error(res.msg);