|
@@ -518,7 +518,8 @@
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row :gutter="10">
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="是否药品" prop="isDrug">
|
|
|
|
|
|
|
+ <!-- 当分类包含"器械"时隐藏是否药品选项 -->
|
|
|
|
|
+ <el-form-item label="是否药品" prop="isDrug" v-if="!isMedicalDeviceCategory">
|
|
|
<el-radio-group v-model="form.isDrug">
|
|
<el-radio-group v-model="form.isDrug">
|
|
|
<el-radio
|
|
<el-radio
|
|
|
v-for="item in isDrugOptions"
|
|
v-for="item in isDrugOptions"
|
|
@@ -1296,6 +1297,10 @@ export default {
|
|
|
this.rules.adverseReactions = [];
|
|
this.rules.adverseReactions = [];
|
|
|
this.rules.contraindications = [];
|
|
this.rules.contraindications = [];
|
|
|
this.rules.precautions = [];
|
|
this.rules.precautions = [];
|
|
|
|
|
+ // 当分类包含"器械"时,默认设置为药品
|
|
|
|
|
+ if (cateName.includes('器械')) {
|
|
|
|
|
+ this.form.isDrug = "1";
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
this.rules.indications = [{ required: true, message: "功能主治不能为空", trigger: "blur" }];
|
|
this.rules.indications = [{ required: true, message: "功能主治不能为空", trigger: "blur" }];
|
|
|
this.rules.ingredient = [{ required: true, message: "成分不能为空", trigger: "blur" }];
|
|
this.rules.ingredient = [{ required: true, message: "成分不能为空", trigger: "blur" }];
|
|
@@ -1345,6 +1350,11 @@ export default {
|
|
|
const cateName = this.cateIdToNameMap[this.form.cateId];
|
|
const cateName = this.cateIdToNameMap[this.form.cateId];
|
|
|
// 确保只在II类器械时显示,不包括III类器械
|
|
// 确保只在II类器械时显示,不包括III类器械
|
|
|
return cateName !== undefined && cateName.includes('II类器械') && !cateName.includes('III类器械');
|
|
return cateName !== undefined && cateName.includes('II类器械') && !cateName.includes('III类器械');
|
|
|
|
|
+ },
|
|
|
|
|
+ // 判断当前分类是否为医疗器械分类
|
|
|
|
|
+ isMedicalDeviceCategory() {
|
|
|
|
|
+ const cateName = this.cateIdToNameMap[this.form.cateId];
|
|
|
|
|
+ return cateName !== undefined && cateName.includes('器械');
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|