提交 1f9c3977 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

结束随访

上级 3d5a1eac
...@@ -41,3 +41,7 @@ ...@@ -41,3 +41,7 @@
.el-checkbox__input.is-focus,.el-checkbox__inner:hover,.el-checkbox__inner.is-focus { .el-checkbox__input.is-focus,.el-checkbox__inner:hover,.el-checkbox__inner.is-focus {
border-color: #449284!important; border-color: #449284!important;
} }
/*重置textarea聚焦样式*/
.el-textarea__inner:focus {
border-color: #449284!important;
}
<template> <template>
<div class="finish-followup" v-if="showThisPage"> <div class="finish-followup" v-if="showThisPage">
<el-dialog <el-dialog
title="变更计划" title="结束随访"
:visible.sync="showFinishFollowup" :visible.sync="showFinishFollowup"
v-if="showThisPage" v-if="showThisPage"
:before-close="clickClose" :before-close="clickClose"
width="30%"
center> center>
<div class="finish-content"> <div class="finish-content">
<div class="content-div"> <el-form
<div class="c-title">居民:</div> :model="finishData"
<div class="c-content">戴佳康;戴佳康;戴佳康;戴佳康等20人</div> :rules="rules"
</div> label-width="85px">
<div class="content-div"> <el-form-item label="居民:">
<div class="c-title">结束原因:</div> {{finishData.patientName}}
<div class="c-content"></div> </el-form-item>
</div> <el-form-item label="结束原因:" prop="finishReason">
<el-input
type="textarea"
v-model="finishData.finishReason"
placeholder="请输入原因"
maxlength="30"
rows="3"
resize="none"></el-input>
</el-form-item>
</el-form>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button class="button-green" @click="clickClose" type="primary">取 消</el-button> <el-button class="button-green" @click="clickClose" type="primary">取 消</el-button>
...@@ -25,8 +35,12 @@ ...@@ -25,8 +35,12 @@
</template> </template>
<script> <script>
import customTextarea from "@/components/followup/customTextarea";
export default { export default {
name: "finish-followup", name: "finish-followup",
components: {
customTextarea
},
props: { props: {
showThisPage: { //是否显示model showThisPage: { //是否显示model
type: Boolean, type: Boolean,
...@@ -34,39 +48,38 @@ ...@@ -34,39 +48,38 @@
return false; return false;
} }
}, },
planChangeData: { finishData: {
type: Object, type: Object,
default: function () { default: function () {
return {}; return {};
} }
}, }
groupOption: {
type: Array,
default: function () {
return [];
}
},
planOption: {
type: Array,
default: function () {
return [];
}
},
}, },
data() { data() {
return { return {
showFinishFollowup: true showFinishFollowup: true,
rules: {
finishReason: [
{ required: true, message: '请输入结束原因', trigger: 'blur' },
{ min: 1, max: 30, message: '长度在30个字符内', trigger: 'blur' }
],
}
} }
}, },
methods: { methods: {
clickClose() { clickClose() {
this.$emit('closeFinishFollowup',false) this.$emit('closeFinishFollowup',false)
} },
} }
} }
</script> </script>
<style scoped>
.el-input__inner:disabled {
background-color: #ffffff!important;
}
</style>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '../../../../style/followup/followup-common'; @import '../../../../style/followup/followup-common';
@import '../../../../style/followup/element-reset.css'; @import '../../../../style/followup/element-reset.css';
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册