|
|
@ -1,22 +1,33 @@ |
|
|
|
<template> |
|
|
|
<div style="height: 100%;overflow-y: auto"> |
|
|
|
<el-form id="medHistory" ref="form" :model="formData" label-width="140px" style="margin-top: 32px"> |
|
|
|
<el-form-item label="主诉:" style="width: 540px" prop="zhuSu"> |
|
|
|
<el-input v-model="formData.zhuSu" type="textarea" auto-complete="off" :rows="4" style="width: 420px" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="现病史:" style="width: 540px" prop="xbs"> |
|
|
|
<el-input v-model="formData.xbs" type="textarea" auto-complete="off" :rows="4" style="width: 420px" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="既往病史:" style="width: 540px" prop="jws"> |
|
|
|
<el-input v-model="formData.jws" type="textarea" auto-complete="off" :rows="4" style="width: 420px" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="过敏史:" style="width: 540px" prop="gms"> |
|
|
|
<el-input v-model="formData.gms" type="textarea" auto-complete="off" :rows="4" style="width: 420px" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="周身其他病史:" style="width: 540px" prop="zsqtbs"> |
|
|
|
<el-input v-model="formData.zsqtbs" type="textarea" auto-complete="off" :rows="4" style="width: 420px" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<div style="height: 100%;overflow-y: auto;display: flex"> |
|
|
|
<div> |
|
|
|
<el-form id="medHistory" ref="form" :model="formData" label-width="140px" style="margin-top: 32px"> |
|
|
|
<el-form-item label="主诉:" style="width: 540px" prop="zhuSu"> |
|
|
|
<el-input v-model="formData.zhuSu" type="textarea" auto-complete="off" :rows="4" @focus="setCurWord('主诉')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="现病史:" style="width: 540px" prop="xbs"> |
|
|
|
<el-input v-model="formData.xbs" type="textarea" auto-complete="off" :rows="4" @focus="setCurWord('现病史')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="既往病史:" style="width: 540px" prop="jws"> |
|
|
|
<el-input v-model="formData.jws" type="textarea" auto-complete="off" :rows="4" @focus="setCurWord('既往病史')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="过敏史:" style="width: 540px" prop="gms"> |
|
|
|
<el-input v-model="formData.gms" type="textarea" auto-complete="off" :rows="4" @focus="setCurWord('过敏史')" /> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="周身其他病史:" style="width: 540px" prop="zsqtbs"> |
|
|
|
<el-input v-model="formData.zsqtbs" type="textarea" auto-complete="off" :rows="4" @focus="setCurWord('周身其他病史')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
<div v-if="curWord" style="margin: 32px 0 0 16px;display: flex"> |
|
|
|
{{ curWord }}关键词: |
|
|
|
<div> |
|
|
|
<el-button @click="combineWord('aaaa')">aaaa</el-button> |
|
|
|
<el-button @click="combineWord('bbbb')">bbbb</el-button> |
|
|
|
<el-button @click="combineWord('cccc')">cccc</el-button> |
|
|
|
<el-button @click="combineWord('dddd')">dddd</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -28,13 +39,56 @@ export default { |
|
|
|
type: Object |
|
|
|
} |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
curWord: '', |
|
|
|
textArray: [] |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
reset() { |
|
|
|
this.$nextTick(()=>{ |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs.form.resetFields() |
|
|
|
}) |
|
|
|
}, |
|
|
|
setCurWord(word) { |
|
|
|
this.curWord = word |
|
|
|
}, |
|
|
|
combineWord(text) { |
|
|
|
switch (this.curWord) { |
|
|
|
case '主诉': |
|
|
|
if (!this.formData.zhuSu) { |
|
|
|
this.formData.zhuSu = '' |
|
|
|
} |
|
|
|
this.formData.zhuSu = this.formData.zhuSu + text |
|
|
|
break |
|
|
|
case '现病史': |
|
|
|
if (!this.formData.xbs) { |
|
|
|
this.formData.xbs = '' |
|
|
|
} |
|
|
|
this.formData.xbs = this.formData.xbs + text |
|
|
|
break |
|
|
|
case '既往病史': |
|
|
|
if (!this.formData.jws) { |
|
|
|
this.formData.jws = '' |
|
|
|
} |
|
|
|
this.formData.jws = this.formData.jws + text |
|
|
|
break |
|
|
|
case '过敏史': |
|
|
|
if (!this.formData.gms) { |
|
|
|
this.formData.gms = '' |
|
|
|
} |
|
|
|
this.formData.gms = this.formData.gms + text |
|
|
|
break |
|
|
|
case '周身其他病史': |
|
|
|
if (!this.formData.zsqtbs) { |
|
|
|
this.formData.zsqtbs = '' |
|
|
|
} |
|
|
|
this.formData.zsqtbs = this.formData.zsqtbs + text |
|
|
|
break |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|