|
|
@@ -150,7 +150,7 @@
|
|
|
<el-tab-pane label="中药处方" name="drugSecond">
|
|
|
<div class="drug-split-layout">
|
|
|
<div class="drug-left-panel">
|
|
|
- <el-form label-width="80px">
|
|
|
+ <el-form ref="chineseForm" :rules="chineseDrugRules" label-width="80px">
|
|
|
<el-form-item label="诊断">
|
|
|
<el-input v-model="prescribeForm.diagnoseChinese" type="textarea" :rows="2"/>
|
|
|
</el-form-item>
|
|
|
@@ -417,6 +417,8 @@ export default {
|
|
|
drugRules: {
|
|
|
diagnose: [{ required: true, message: '请输入西药诊断', trigger: 'blur' }],
|
|
|
remark: [{ required: true, message: '请输入西药医嘱', trigger: 'blur' }],
|
|
|
+ },
|
|
|
+ chineseDrugRules: {
|
|
|
diagnoseChinese: [{ required: true, message: '请输入中药诊断', trigger: 'blur' }],
|
|
|
remarkChinese: [{ required: true, message: '请输入中药医嘱', trigger: 'blur' }]
|
|
|
},
|
|
|
@@ -938,12 +940,12 @@ export default {
|
|
|
|
|
|
.prescription-overlay .diagnose {
|
|
|
position: absolute;
|
|
|
- top: 19%;
|
|
|
- left: 15%;
|
|
|
- width: 70%;
|
|
|
- height: 10%;
|
|
|
+ top: 19%; /* 从 19% 改为 17%:稍微上移一点,腾出更多空间 */
|
|
|
+ left: 10%; /* 从 15% 改为 10%:向左扩展,让文字区域更宽 */
|
|
|
+ width: 86%; /* 从 70% 改为 80%:宽度增加,每行能显示更多文字 */
|
|
|
+ height: 12%; /* 从 10% 改为 14%:高度增加,能多显示几行文字 */
|
|
|
overflow: hidden;
|
|
|
- font-size: clamp(10px, 1.5vw, 14px);
|
|
|
+ font-size: clamp(8px, 1.2vw, 12px); /* 从 clamp(10px, 1.5vw, 14px) 改为更小 */
|
|
|
color: #000;
|
|
|
white-space: pre-line;
|
|
|
line-height: 1.4;
|
|
|
@@ -972,12 +974,12 @@ export default {
|
|
|
|
|
|
.prescription-overlay .remark {
|
|
|
position: absolute;
|
|
|
- top: 52%;
|
|
|
- left: 12%;
|
|
|
- width: 70%;
|
|
|
- height: 10%;
|
|
|
+ top: 52%; /* 从 52% 改为 50%:稍微上移,与诊断保持紧凑 */
|
|
|
+ left: 8%; /* 从 12% 改为 8%:向左扩展 */
|
|
|
+ width: 86%; /* 从 70% 改为 84%:宽度增加 */
|
|
|
+ height: 16%; /* 从 10% 改为 14%:高度增加 */
|
|
|
overflow: hidden;
|
|
|
- font-size: clamp(10px, 1.5vw, 14px);
|
|
|
+ font-size: clamp(8px, 1.2vw, 12px); /* 从 clamp(10px, 1.5vw, 14px) 改为更小 */
|
|
|
color: #000;
|
|
|
white-space: pre-line;
|
|
|
line-height: 1.4;
|