|
|
@@ -126,6 +126,11 @@
|
|
|
</el-table>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <!-- 不建议使用复选框 -->
|
|
|
+ <el-form-item label="不建议使用" label-width="120px">
|
|
|
+ <el-checkbox v-model="formData.notRecommendUse" :disabled="readonly">不建议使用</el-checkbox>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<!-- 医生及药师信息(紧凑三列) -->
|
|
|
<el-divider content-position="left">医生及药师信息</el-divider>
|
|
|
<el-row :gutter="20">
|
|
|
@@ -198,7 +203,8 @@ export default {
|
|
|
facialDiagnosis: '',
|
|
|
foodAndExerciseGuidance: '',
|
|
|
healingList: [],
|
|
|
- noteTaboos: ''
|
|
|
+ noteTaboos: '',
|
|
|
+ notRecommendUse: false
|
|
|
},
|
|
|
formRules: {
|
|
|
diagnose: [{ required: true, message: '请输入诊断', trigger: 'blur' }],
|
|
|
@@ -273,7 +279,8 @@ export default {
|
|
|
facialDiagnosis: '',
|
|
|
foodAndExerciseGuidance: '',
|
|
|
healingList: [],
|
|
|
- noteTaboos: ''
|
|
|
+ noteTaboos: '',
|
|
|
+ notRecommendUse: false
|
|
|
};
|
|
|
if (!this.readonly) this.addHealingRow();
|
|
|
this.$nextTick(() => {
|
|
|
@@ -353,6 +360,7 @@ export default {
|
|
|
this.formData.facialDiagnosis = data.facialDiagnosis || '';
|
|
|
this.formData.foodAndExerciseGuidance = data.foodAndExerciseGuidance || '';
|
|
|
this.formData.noteTaboos = data.noteTaboos || '';
|
|
|
+ this.formData.notRecommendUse = data.notRecommendUse || false;
|
|
|
if (data.healingAreaJson) {
|
|
|
try {
|
|
|
const list = JSON.parse(data.healingAreaJson);
|
|
|
@@ -383,13 +391,14 @@ export default {
|
|
|
facialDiagnosis: this.formData.facialDiagnosis,
|
|
|
foodAndExerciseGuidance: this.formData.foodAndExerciseGuidance,
|
|
|
healingAreaJson: healingAreaJson,
|
|
|
- noteTaboos: this.formData.noteTaboos
|
|
|
+ noteTaboos: this.formData.noteTaboos,
|
|
|
+ notRecommendUse: this.formData.notRecommendUse
|
|
|
};
|
|
|
this.submitLoading = true;
|
|
|
submitDoctorAdvice(params).then(() => {
|
|
|
this.$message.success('处方建议提交成功');
|
|
|
this.dialogVisible = false;
|
|
|
- this.$emit('success');
|
|
|
+ this.$emit('success', { notRecommendUse: this.formData.notRecommendUse });
|
|
|
}).catch(error => {
|
|
|
console.error('提交失败', error);
|
|
|
this.$message.error('提交失败,请重试');
|