|
@@ -284,6 +284,11 @@
|
|
|
<el-option v-for="(it,i) in dioTypeList" :key="i" :label="it.name" :value="it.val"></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="药品类型:" v-if="data.type=='药品通用名'" class="marT is-required">
|
|
|
+ <el-select v-model="drug">
|
|
|
+ <el-option v-for="(it,i) in drugTypeList" :key="i" :label="it.name" :value="it.val"></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
<!-- <el-form-item
|
|
|
v-if="data.type=='症状'"
|
|
|
label="填写单患者界面展示通俗内容:"
|
|
@@ -377,6 +382,8 @@ export default {
|
|
|
saveDisable: false, //保存按钮禁止点击
|
|
|
options: [],
|
|
|
copy: null,
|
|
|
+ drugTypeList:[{val:0,name:'西药'},{val:1,name:'中成药'}],//药品类型
|
|
|
+ drug:'',
|
|
|
dioTypeList: [], //更多信息-类型
|
|
|
dioType: '', //默认展示一类
|
|
|
deptList: [], //更多信息-科室
|
|
@@ -538,6 +545,7 @@ export default {
|
|
|
this.icdCode = redata.icdCode;
|
|
|
this.description = redata.description;
|
|
|
this.explains = redata.explains;
|
|
|
+ this.drug=redata.drug;
|
|
|
const type = redata.type;
|
|
|
|
|
|
if (type == '诊断') {
|
|
@@ -810,6 +818,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ console.log(this.drug)
|
|
|
+ if(this.data.type == '药品通用名'&&(this.drug===''||this.drug===null)){
|
|
|
+ this.warning('请选择药品类型');
|
|
|
+ return;
|
|
|
+ }
|
|
|
// 过滤同义词空数据
|
|
|
let realData = [];
|
|
|
if (this.id) {
|
|
@@ -897,7 +910,7 @@ export default {
|
|
|
spell: this.data.spell,
|
|
|
status: this.data.status||1,
|
|
|
libType: this.data.code||this.data.typeId,
|
|
|
- // typeId:this.data.typeId,
|
|
|
+ drug:this.drug,
|
|
|
synonymName: this.data.synonymName,
|
|
|
isHasCommon: 1,
|
|
|
libId: this.copy ? '' :this.data.libId,
|
|
@@ -918,6 +931,7 @@ export default {
|
|
|
remark: this.data.remark,
|
|
|
spell: this.data.spell,
|
|
|
status: this.data.status||1,
|
|
|
+ drug:this.drug,
|
|
|
libType: this.data.code||this.data.typeId,
|
|
|
// typeId:this.data.typeId||this.data.code,
|
|
|
libId: this.copy ? '' :this.data.libId,
|