浏览代码

随访表单修改

zhangyanfang 6 年之前
父节点
当前提交
1b6923348a

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

@ -39,6 +39,7 @@
<body>
    <div id="app">
        <button class="button" @click="editBtn()">编辑</button>
        <p class="c-f20 mb10" style="text-align: center;">肺结核患者随访服务记录表</p>
        <div class="ui-grid p10">
            <div class="ui-col-1">
                <div class="ui-grid">

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

@ -41,6 +41,7 @@
<body>
	<div id="app">
		<button class="button" @click="editBtn()">编辑</button>
		<p class="c-f20 mb10" style="text-align: center;">产后访视记录表</p>
		<div class="ui-grid p10">
			<div class="ui-col-1">
				<div class="ui-grid">

+ 1 - 0
app/followup/v1/html/fangshi-detail-7.html

@ -33,6 +33,7 @@
<body>
    <div id="app">
        <button class="button" @click="editBtn()">编辑</button>
        <p class="c-f20 mb10" style="text-align: center;">严重精神障碍患者随访服务记录表</p>
        <div class="ui-grid p10">
            <div class="ui-col-1">
                <div class="ui-grid">

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

@ -90,6 +90,7 @@
<body>
	<div id="app">
		<button class="button" @click="editBtn()">编辑</button>
		<p class="c-f20 mb10" style="text-align: center;">健康体检表</p>
		<div class="ui-grid p10">
			<div class="ui-col-1">
				<div class="ui-grid">
@ -387,7 +388,7 @@
			</tr>
			<tr>
				<td class="col-w120 c-t-center">开始吸烟年龄</td>
				<td class="ui-grid"  style="border: 0;">
				<td class="ui-grid" style="border: 0;">
					<div class="ui-col-1">
						<el-input :readonly="!editable" v-model="oldmanData.start_smoking_age" placeholder="" clearable></el-input>
					</div>

+ 23 - 22
app/followup/v1/html/fangshi-detail-9.html

@ -25,6 +25,7 @@
    <div id="app">
            <table class="table table-bordered">
                    <button class="button" @click="editBtn()">编辑</button>
                    <p class="c-f20 mb10" style="text-align: center;">肺结核患者第一次入户随访记录表</p>
                    <div class="ui-grid p10">
                        <div class="ui-col-1">
                            <div class="ui-grid">
@ -90,17 +91,17 @@
                </tr>
                <tr>
                    <td class="col-w300">症状及体征:
                    	<el-checkbox-group v-model="data2.symptom" :disabled="!editable">
                            <el-checkbox label="0" style="margin-left:30px;">没有症状</el-checkbox>
                            <el-checkbox label="1">咳嗽咳痰</el-checkbox>
                            <el-checkbox label="2">低热盗汗</el-checkbox>
                            <el-checkbox label="3">咳血或血痰</el-checkbox>
                            <el-checkbox label="4">胸痛消瘦</el-checkbox>
                            <el-checkbox label="5">恶心纳差</el-checkbox>
                            <el-checkbox label="6">头痛失眠</el-checkbox>
                            <el-checkbox label="7">视物模糊</el-checkbox>
                            <el-checkbox label="8">皮肤瘙痒、皮疹</el-checkbox>
                            <el-checkbox label="9">耳鸣、听力下降</el-checkbox>
                    	<el-checkbox-group v-model="data2.symptom" :disabled="!editable">
                            <el-checkbox label="0" style="margin-left:30px;">没有症状</el-checkbox>
                            <el-checkbox label="1">咳嗽咳痰</el-checkbox>
                            <el-checkbox label="2">低热盗汗</el-checkbox>
                            <el-checkbox label="3">咳血或血痰</el-checkbox>
                            <el-checkbox label="4">胸痛消瘦</el-checkbox>
                            <el-checkbox label="5">恶心纳差</el-checkbox>
                            <el-checkbox label="6">头痛失眠</el-checkbox>
                            <el-checkbox label="7">视物模糊</el-checkbox>
                            <el-checkbox label="8">皮肤瘙痒、皮疹</el-checkbox>
                            <el-checkbox label="9">耳鸣、听力下降</el-checkbox>
                        </el-checkbox-group>
                    </td>
                    <td colspan="3" style="vertical-align: initial;">
@ -356,7 +357,7 @@
                    getData: function () {
                        var vm = this
                        fangshiAPI.getPhthisisFirstCheckRecord({ followupId: this.followupId  }).then(function (res) {
                           	if (res.status == 200) {
                           	if (res.status == 200) {
								var data = res.data
                                var isEmpty = true
                            	for(var k in data){
@ -395,13 +396,13 @@
		                            btn.innerHTML = '保存'
		                            vm.isEditBtn = false
		                            vm.editable = true
                                }
                            } else {
                                top.toastr.error(res.msg);
                            }
                                }
                            } else {
                                top.toastr.error(res.msg);
                            }
                        })
                    },
                    editData: function () {
                    editData: function () {
                        var data = {};
						data = $.extend(true, data, this.data2)
						data.version = this.version	//版本号
@ -413,11 +414,11 @@
                        }
                        
                        fangshiAPI.savePhthisisFirstCheckRecord({ jsonData: JSON.stringify(data) }).then(function (res) {
                        	if (res.status == 200) {
                            	top.toastr.info('保存成功')
                            } else {
                                top.toastr.error(res.msg);
                            }
                        	if (res.status == 200) {
                            	top.toastr.info('保存成功')
                            } else {
                                top.toastr.error(res.msg);
                            }
                        })
                    },
                    editBtn: function () {

+ 3 - 2
component/followup/fangshi-detail-6.js

@ -1,6 +1,7 @@
Vue.component('fangshi-detail-6', {
    template: `<div class="mt40">
    <button class="button" @click="editBtn()">编辑</button>
    <p class="c-f20 mb10" style="text-align: center;">新生儿家庭访视记录表</p>
    <div class="ui-grid p10 setradio">
        <div class="ui-col-1">
            <div class="ui-grid">
@ -1056,12 +1057,12 @@ Vue.component('fangshi-detail-6', {
        editBtn: function () {
            this.isEditBtn = !this.isEditBtn
            if (this.isEditBtn == true) {
                var btn = document.getElementsByClassName('button')[0]
                var btn = document.getElementsByClassName('button')[1]
                btn.innerHTML = '编辑'
                this.editable = false
                this.editData()
            } else if (this.isEditBtn == false) {
                var btn = document.getElementsByClassName('button')[0]
                var btn = document.getElementsByClassName('button')[1]
                btn.innerHTML = '保存'
                this.editable = true
            }

+ 3 - 3
component/followup/follow-bottom.js

@ -9,7 +9,7 @@ Vue.component('follow-bottom', {
			<div class="mt10">签到位置:&emsp;<span v-html="followUpData.address">福建省厦门市思明区软件园望海路</span></div>\
			<div class="ui-grid mt10">\
				<div class="ui-col-0">签到拍照:&emsp;</div>\
				<div class="ui-col-0"><img :src="imgSrc" width="50" height="50"></div>\
				<div class="ui-col-0"><img v-for="item in imgSrc" :src="item" width="50" height="50" style="margin:10px;"></div>\
			</div>\
		</div>\
	</div>',
@ -19,7 +19,7 @@ Vue.component('follow-bottom', {
			followUpList: [],
			curPage: 1,
			followUpData: {},
			imgSrc: '../../images/d-male.png'
			imgSrc:[],
		}
	},
	watch: {
@ -38,8 +38,8 @@ Vue.component('follow-bottom', {
					var data = res.data
					if (data != null) {
						vm.followUpData = data
						vm.imgSrc==data.img?data.img.split(','):''
					}
					// vm.imgSrc=data.img?data.img:''
				} else {
					top.toastr.error(res.msg);
				}