12/19 特殊药品明细选择优化1.0

dev_unify
wangwei 4 months ago
parent c80204da53
commit ac21bb6d3f

@ -258,7 +258,7 @@
<el-row type="flex">
<el-col :span="11" class="el-col">
<el-form-item label="明细分类:" prop="detailSort">
<el-select v-model="newProductData.detailSort" style="width: 90%" placeholder="选择明细分类">
<el-select v-model="newProductData.detailSort" style="width: 90%" placeholder="选择明细分类" >
<el-option label="麻醉药品原料药" :value="1"></el-option>
<el-option label="第一类精神药品原料药" :value="2"></el-option>
<el-option label="第二类精神药品原料药" :value="3"></el-option>
@ -268,7 +268,7 @@
<el-option label="中药注射剂" :value="7"></el-option>
<el-option label="疫苗" :value="8"></el-option>
<el-option label="血液制品" :value="9"></el-option>
<el-option label="国家基本药品目录入网药品" :value="10"></el-option>
<el-option label="国家基本药品目录入网药品" :value="10" v-if="!isSpecial"></el-option>
<el-option label="非基本药物" :value="11"></el-option>
<el-option label="各省增补基本药物" :value="12"></el-option>
<el-option label="特殊药品复方制剂" :value="13"></el-option>
@ -773,7 +773,9 @@ export default {
levelUnitList: [],
maxLevel: 1,
editRowSwitch: false //
editRowSwitch: false, //
//89
isSpecial: false
}
},
@ -1129,6 +1131,7 @@ export default {
.then((response) => {
this.loading = false
this.detailList = response.data || []
this.checkIsSpecial()
})
.catch(() => {
this.loading = false
@ -1137,6 +1140,17 @@ export default {
}
},
//
checkIsSpecial(){
if (this.detailList.length > 0){
this.detailList.forEach(item => {
if (item.nameCode.startsWith('89')) {
this.isSpecial = true
}
})
}
},
distributeLevelDiChange(val) {
const matchingItem = this.detailList.find(item => item.nameCode == val)
if (matchingItem) {

@ -397,7 +397,7 @@
<el-option label="中药注射剂" :value="7"></el-option>
<el-option label="疫苗" :value="8"></el-option>
<el-option label="血液制品" :value="9"></el-option>
<el-option label="国家基本药品目录入网药品" :value="10"></el-option>
<el-option label="国家基本药品目录入网药品" :value="10" v-if="!isSpecial"></el-option>
<el-option label="非基本药物" :value="11"></el-option>
<el-option label="各省增补基本药物" :value="12"></el-option>
<el-option label="特殊药品复方制剂" :value="13"></el-option>
@ -929,6 +929,8 @@ export default {
// {required: true, message: '', trigger: 'blur'}
// ],
},
//89
isSpecial: false,
};
},
@ -1173,6 +1175,9 @@ export default {
this.repEditQuery.detailSort = null
this.multipleSelection = selection
this.currentRow = selection;
if (this.currentRow.nameCode.startsWith('89')) {
this.isSpecial = true
}
this.replTitle = "(" + this.currentRow.cpmctymc + ")" + "药品信息补齐:";
this.repEditQuery.sptm = this.currentRow.sptm;
this.repEditQuery.ybbm = this.currentRow.ybbm;

@ -268,7 +268,7 @@
<el-option label="中药注射剂" :value="7"></el-option>
<el-option label="疫苗" :value="8"></el-option>
<el-option label="血液制品" :value="9"></el-option>
<el-option label="国家基本药品目录入网药品" :value="10"></el-option>
<el-option label="国家基本药品目录入网药品" :value="10" v-if="!isSpecial"></el-option>
<el-option label="非基本药物" :value="11"></el-option>
<el-option label="各省增补基本药物" :value="12"></el-option>
<el-option label="特殊药品复方制剂" :value="13"></el-option>
@ -942,7 +942,8 @@ export default {
limit: 20,
total: 0,
approvalNum: "",
}
},
isSpecial:false
}
},
@ -1267,11 +1268,11 @@ export default {
productType: this.newProductData.productsType
}
this.loading = true
console.log('djdjd', query)
filterByUuid(query)
.then((response) => {
this.loading = false
this.detailList = response.data || []
this.checkIsSpecial()
})
.catch(() => {
this.loading = false
@ -1279,6 +1280,16 @@ export default {
})
}
},
//
checkIsSpecial(){
if (this.detailList.length > 0){
this.detailList.forEach(item => {
if (item.nameCode.startsWith('89')) {
this.isSpecial = true
}
})
}
},
distributeLevelDiChange(val) {
const matchingItem = this.detailList.find(item => item.nameCode == val)

Loading…
Cancel
Save