药品画面接口重新对应
This commit is contained in:
@@ -13,8 +13,9 @@ export function getMedicationList(query) {
|
|||||||
// 查询药品目录详细
|
// 查询药品目录详细
|
||||||
export function getMedicationOne(id) {
|
export function getMedicationOne(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/data-dictionary/medication/information-one/' + parseStrEmpty(id),
|
url: '/data-dictionary/medication/information-one',
|
||||||
method: 'get'
|
method: 'get',
|
||||||
|
params: { id } // 确保参数正确传递
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,7 +54,7 @@ export function getMedicationCategory() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 停用病种目录
|
// 停用药品目录
|
||||||
export function stopMedication(ids) {
|
export function stopMedication(ids) {
|
||||||
console.log(ids)
|
console.log(ids)
|
||||||
return request({
|
return request({
|
||||||
@@ -63,7 +64,7 @@ export function stopMedication(ids) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 启用病种目录
|
// 启用药品目录
|
||||||
export function startMedication(ids) {
|
export function startMedication(ids) {
|
||||||
console.log(ids)
|
console.log(ids)
|
||||||
return request({
|
return request({
|
||||||
@@ -72,3 +73,21 @@ export function startMedication(ids) {
|
|||||||
data: ids
|
data: ids
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 查询部门树形数据
|
||||||
|
export function deptTreeSelect(queryParams) {
|
||||||
|
return request({
|
||||||
|
url: '/base-data-manage/organization/organization',
|
||||||
|
method: 'get',
|
||||||
|
param: queryParams
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询地点树形数据
|
||||||
|
export function locationTreeSelect(queryParams) {
|
||||||
|
return request({
|
||||||
|
url: '/base-data-manage/cabinet-location/cabinet-location',
|
||||||
|
method: 'get',
|
||||||
|
param: queryParams
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -77,12 +77,39 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="所属科室" prop="orgId">
|
<el-form-item label="所属科室" prop="orgId">
|
||||||
<el-input v-model="form.orgId" maxlength="11" />
|
<el-tree-select
|
||||||
|
v-model="form.orgId"
|
||||||
|
:data="deptOptions"
|
||||||
|
:props="{
|
||||||
|
value: 'id',
|
||||||
|
label: 'name',
|
||||||
|
children: 'children',
|
||||||
|
}"
|
||||||
|
value-key="id"
|
||||||
|
placeholder="请选择提供部门"
|
||||||
|
check-strictly
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-form-item label="地点" prop="locationId">
|
||||||
|
<el-tree-select
|
||||||
|
v-model="form.locationId"
|
||||||
|
:data="locationOptions"
|
||||||
|
:props="{
|
||||||
|
value: 'id',
|
||||||
|
label: 'name',
|
||||||
|
children: 'children',
|
||||||
|
}"
|
||||||
|
value-key="id"
|
||||||
|
placeholder="请选择地点"
|
||||||
|
check-strictly
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
<!-- <el-col :span="6">
|
||||||
<el-form-item label="系统类别" prop="category">
|
<el-form-item label="系统类别" prop="category">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.category"
|
v-model="form.category"
|
||||||
@@ -97,7 +124,7 @@
|
|||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="药品分类" prop="categoryCode">
|
<el-form-item label="药品分类" prop="categoryCode">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -106,7 +133,7 @@
|
|||||||
:disabled="form.id != undefined"
|
:disabled="form.id != undefined"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="category in medicine_category"
|
v-for="category in med_category_code"
|
||||||
:key="category.value"
|
:key="category.value"
|
||||||
:label="category.label"
|
:label="category.label"
|
||||||
:value="category.value"
|
:value="category.value"
|
||||||
@@ -115,9 +142,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="最小费用" prop="categoryCode">
|
<el-form-item label="财务统计类型" prop="minimalFee">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.categoryCode"
|
v-model="form.minimalFee"
|
||||||
clearable
|
clearable
|
||||||
:disabled="form.id != undefined"
|
:disabled="form.id != undefined"
|
||||||
>
|
>
|
||||||
@@ -153,15 +180,6 @@
|
|||||||
<el-input v-model="form.totalVolume" placeholder="" />
|
<el-input v-model="form.totalVolume" placeholder="" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
|
||||||
<el-form-item label="包装数量" prop="packagingQuantity">
|
|
||||||
<el-input
|
|
||||||
v-model="form.packagingQuantity"
|
|
||||||
placeholder=""
|
|
||||||
:disabled="form.id != undefined"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="包装单位" prop="unitCode">
|
<el-form-item label="包装单位" prop="unitCode">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -179,9 +197,9 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="贯标国家编码" prop="minUnitCode">
|
<el-form-item label="贯标国家编码" prop="nationalDrugCode">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.minUnitCode"
|
v-model="form.nationalDrugCode"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
:disabled="form.id != undefined"
|
:disabled="form.id != undefined"
|
||||||
/>
|
/>
|
||||||
@@ -189,15 +207,15 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
<!-- <el-col :span="6">
|
||||||
<el-form-item label="基本剂量" prop="dose">
|
<el-form-item label="基本剂量" prop="doseUnitCode">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.dose"
|
v-model="form.doseUnitCode"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
:disabled="form.id != undefined"
|
:disabled="form.id != undefined"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="剂量单位" prop="doseUnitCode">
|
<el-form-item label="剂量单位" prop="doseUnitCode">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -222,7 +240,7 @@
|
|||||||
:disabled="form.id != undefined"
|
:disabled="form.id != undefined"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="category in medicine_formulation"
|
v-for="category in dose_form_code"
|
||||||
:key="category.value"
|
:key="category.value"
|
||||||
:label="category.label"
|
:label="category.label"
|
||||||
:value="category.value"
|
:value="category.value"
|
||||||
@@ -249,9 +267,9 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="拆分属性" prop="minUnitCode">
|
<el-form-item label="拆分属性" prop="partAttributeEnum">
|
||||||
<el-select
|
<el-select
|
||||||
v-model="form.categoryCode"
|
v-model="form.partAttributeEnum"
|
||||||
clearable
|
clearable
|
||||||
:disabled="form.id != undefined"
|
:disabled="form.id != undefined"
|
||||||
>
|
>
|
||||||
@@ -265,27 +283,22 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="购入价" prop="name">
|
<el-form-item label="购入价" prop="purchasePrice">
|
||||||
<el-input v-model="form.name" placeholder="" />
|
<el-input v-model="form.purchasePrice" placeholder="" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="零售价" prop="name">
|
<el-form-item label="零售价" prop="retailPrice">
|
||||||
<el-input v-model="form.name" placeholder="" />
|
<el-input v-model="form.retailPrice" placeholder="" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="最高零售价" prop="name">
|
<el-form-item label="最高零售价" prop="maximumRetailPrice">
|
||||||
<el-input v-model="form.name" placeholder="" />
|
<el-input v-model="form.maximumRetailPrice" placeholder="" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
|
||||||
<el-form-item label="停用" prop="status">
|
|
||||||
<el-checkbox v-model="form.status"></el-checkbox>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="皮试判别" prop="skinTestFlag">
|
<el-form-item label="皮试判别" prop="skinTestFlag">
|
||||||
<el-checkbox v-model="form.skinTestFlag"></el-checkbox>
|
<el-checkbox v-model="form.skinTestFlag"></el-checkbox>
|
||||||
@@ -301,6 +314,11 @@
|
|||||||
<el-checkbox v-model="form.childrenFlag"></el-checkbox>
|
<el-checkbox v-model="form.childrenFlag"></el-checkbox>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-form-item label="是否活性" prop="activeFlag">
|
||||||
|
<el-checkbox v-model="form.activeFlag"></el-checkbox>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
@@ -412,16 +430,6 @@
|
|||||||
<el-input v-model="form.approvalNumber" placeholder="" />
|
<el-input v-model="form.approvalNumber" placeholder="" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="6">
|
|
||||||
<el-form-item label="所含耗材" prop="comprisedText">
|
|
||||||
<el-input v-model="form.comprisedText" placeholder="" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col> -->
|
|
||||||
<el-col :span="6">
|
|
||||||
<el-form-item label="拆零比" prop="partPercent">
|
|
||||||
<el-input v-model="form.partPercent" placeholder="" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="医保类别" prop="ybType">
|
<el-form-item label="医保类别" prop="ybType">
|
||||||
<el-select
|
<el-select
|
||||||
@@ -443,7 +451,7 @@
|
|||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="医保对码" prop="ybMatchFlag">
|
<el-form-item label="医保对码" prop="ybMatchFlag">
|
||||||
<el-input v-model="form.ybMatchFlag" placeholder="" />
|
<el-checkbox v-model="form.ybMatchFlag" placeholder="" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
@@ -452,13 +460,25 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="生产厂家 " prop="manufacturerId">
|
<el-form-item label="生产厂家 " prop="manufacturerText">
|
||||||
<el-input v-model="form.manufacturerId" placeholder="" />
|
<el-input v-model="form.manufacturerText" placeholder="" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="供应商" prop="supplyId">
|
<el-form-item label="供应商" prop="supplyId">
|
||||||
<el-input v-model="form.supplyId" placeholder="" />
|
<el-select
|
||||||
|
v-model="form.supplyId"
|
||||||
|
placeholder=""
|
||||||
|
clearable
|
||||||
|
style="width: 150px"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="supplier in supplierListOptions"
|
||||||
|
:key="supplier.value"
|
||||||
|
:label="supplier.label"
|
||||||
|
:value="supplier.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -469,13 +489,13 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="抗生素" prop="restrictedFlag">
|
<el-form-item label="抗生素" prop="antibioticFlag">
|
||||||
<el-checkbox v-model="form.restrictedFlag"></el-checkbox>
|
<el-checkbox v-model="form.antibioticFlag"></el-checkbox>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="限制使用范围" prop="restrictedScope">
|
<el-form-item label="自制" prop="selfFlag">
|
||||||
<el-input v-model="form.restrictedScope" placeholder="" />
|
<el-checkbox v-model="form.selfFlag"></el-checkbox>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
@@ -485,7 +505,7 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12">
|
<el-col :span="10">
|
||||||
<el-form-item label="生效日期" prop="effectiveDate">
|
<el-form-item label="生效日期" prop="effectiveDate">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="form.effectiveDate"
|
v-model="form.effectiveDate"
|
||||||
@@ -495,12 +515,8 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10">
|
<el-col :span="8">
|
||||||
<el-form-item
|
<el-form-item label="到期日期" prop="expirationDate">
|
||||||
label="到期日期"
|
|
||||||
prop="expirationDate"
|
|
||||||
style="margin-left: 10px"
|
|
||||||
>
|
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="form.expirationDate"
|
v-model="form.expirationDate"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
@@ -509,10 +525,20 @@
|
|||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="6">
|
||||||
|
<el-form-item
|
||||||
|
label="限制使用范围"
|
||||||
|
prop="restrictedScope"
|
||||||
|
style="margin-left: 15px"
|
||||||
|
>
|
||||||
|
<el-input v-model="form.restrictedScope" placeholder="" />
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="抗生素信息" v-if="form.id != undefined">
|
<!-- <el-tab-pane label="抗生素信息" v-if="form.id != undefined && form.antibioticFlag"> -->
|
||||||
|
<el-tab-pane label="抗生素信息" v-if="form.antibioticFlag">
|
||||||
<el-form
|
<el-form
|
||||||
:model="antibioticForm"
|
:model="antibioticForm"
|
||||||
:rules="rules"
|
:rules="rules"
|
||||||
@@ -522,22 +548,10 @@
|
|||||||
>
|
>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="20">
|
<el-col :span="20">
|
||||||
<el-form-item label="抗生素分类" prop="conditionCode">
|
<el-form-item label="抗生素分类" prop="antibioticCode">
|
||||||
<el-select v-model="antibioticForm.statusEnum" clearable>
|
<el-select v-model="antibioticForm.antibioticCode" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in sys_normal_disable"
|
v-for="dict in antibiotic_type_code"
|
||||||
:key="dict.value"
|
|
||||||
:label="dict.label"
|
|
||||||
:value="dict.value"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
<el-select
|
|
||||||
v-model="antibioticForm.statusEnum"
|
|
||||||
clearable
|
|
||||||
style="margin-left: 5px"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="dict in sys_normal_disable"
|
|
||||||
:key="dict.value"
|
:key="dict.value"
|
||||||
:label="dict.label"
|
:label="dict.label"
|
||||||
:value="dict.value"
|
:value="dict.value"
|
||||||
@@ -553,12 +567,12 @@
|
|||||||
prop="conditionCode"
|
prop="conditionCode"
|
||||||
class="custom-label-spacing"
|
class="custom-label-spacing"
|
||||||
>
|
>
|
||||||
<el-select v-model="antibioticForm.statusEnum" clearable>
|
<el-select v-model="antibioticForm.restrictedEnum" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in sys_normal_disable"
|
v-for="statusRestricted in statusRestrictedOptions"
|
||||||
:key="dict.value"
|
:key="statusRestricted.value"
|
||||||
:label="dict.label"
|
:label="statusRestricted.info"
|
||||||
:value="dict.value"
|
:value="statusRestricted.value"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -566,9 +580,9 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="单次剂量" prop="conditionCode">
|
<el-form-item label="单次剂量" prop="dose">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="antibioticForm.name"
|
v-model="antibioticForm.dose"
|
||||||
placeholder="输入剂量"
|
placeholder="输入剂量"
|
||||||
:disabled="form.id != undefined"
|
:disabled="form.id != undefined"
|
||||||
/>
|
/>
|
||||||
@@ -576,9 +590,9 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
-
|
-
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item label="" prop="conditionCode" label-width="0px">
|
<el-form-item label="" prop="maxUnit" label-width="0px">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="antibioticForm.name"
|
v-model="antibioticForm.maxUnit"
|
||||||
placeholder="输入剂量"
|
placeholder="输入剂量"
|
||||||
:disabled="form.id != undefined"
|
:disabled="form.id != undefined"
|
||||||
/>
|
/>
|
||||||
@@ -587,9 +601,9 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
<el-row :gutter="24">
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="频次范围" prop="conditionCode">
|
<el-form-item label="频次范围" prop="minRateCode">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="antibioticForm.name"
|
v-model="antibioticForm.minRateCode"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
:disabled="form.id != undefined"
|
:disabled="form.id != undefined"
|
||||||
/>
|
/>
|
||||||
@@ -597,9 +611,9 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
-
|
-
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item label="" prop="conditionCode" label-width="0px">
|
<el-form-item label="" prop="maxRateCode" label-width="0px">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="antibioticForm.name"
|
v-model="antibioticForm.maxRateCode"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
:disabled="form.id != undefined"
|
:disabled="form.id != undefined"
|
||||||
/>
|
/>
|
||||||
@@ -627,18 +641,6 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row :gutter="24">
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-form-item label="剂量单位" prop="conditionCode">
|
|
||||||
<el-input
|
|
||||||
v-model="antibioticForm.name"
|
|
||||||
placeholder=""
|
|
||||||
:disabled="form.id != undefined"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="6"> (单位g) </el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
@@ -653,22 +655,16 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="MedicineDialog">
|
<script setup name="MedicineDialog">
|
||||||
// import {
|
import { deptTreeSelect, locationTreeSelect } from "./medicine";
|
||||||
// getDiseaseList,
|
|
||||||
// editDisease,
|
|
||||||
// addDisease,
|
|
||||||
// getDiseaseCategory,
|
|
||||||
// getDiseaseOne,
|
|
||||||
// } from "./components/medicine";
|
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const {
|
const {
|
||||||
medicine_category,
|
med_category_code,
|
||||||
system_categories,
|
system_categories,
|
||||||
medicine_properties,
|
medicine_properties,
|
||||||
unit_code,
|
unit_code,
|
||||||
medicine_formulation,
|
dose_form_code,
|
||||||
yb_type,
|
yb_type,
|
||||||
medicine_default_usage,
|
medicine_default_usage,
|
||||||
medicine_default_frequency,
|
medicine_default_frequency,
|
||||||
@@ -676,13 +672,14 @@ const {
|
|||||||
sys_normal_disable,
|
sys_normal_disable,
|
||||||
rate_code,
|
rate_code,
|
||||||
method_code,
|
method_code,
|
||||||
fin_type_code
|
fin_type_code,
|
||||||
|
antibiotic_type_code,
|
||||||
} = proxy.useDict(
|
} = proxy.useDict(
|
||||||
"medicine_category",
|
"med_category_code",
|
||||||
"system_categories",
|
"system_categories",
|
||||||
"medicine_properties",
|
"medicine_properties",
|
||||||
"unit_code",
|
"unit_code",
|
||||||
"medicine_formulation",
|
"dose_form_code",
|
||||||
"yb_type",
|
"yb_type",
|
||||||
"medicine_default_usage",
|
"medicine_default_usage",
|
||||||
"medicine_default_frequency",
|
"medicine_default_frequency",
|
||||||
@@ -690,7 +687,8 @@ const {
|
|||||||
"sys_normal_disable",
|
"sys_normal_disable",
|
||||||
"rate_code",
|
"rate_code",
|
||||||
"method_code",
|
"method_code",
|
||||||
"fin_type_code"
|
"fin_type_code",
|
||||||
|
"antibiotic_type_code"
|
||||||
);
|
);
|
||||||
|
|
||||||
const title = ref("");
|
const title = ref("");
|
||||||
@@ -698,7 +696,10 @@ const visible = ref(false);
|
|||||||
const emits = defineEmits(["submit"]); // 声明自定义事件
|
const emits = defineEmits(["submit"]); // 声明自定义事件
|
||||||
const statusFlagOptions = ref(undefined);
|
const statusFlagOptions = ref(undefined);
|
||||||
const domainEnumOptions = ref(undefined);
|
const domainEnumOptions = ref(undefined);
|
||||||
|
const deptOptions = ref(undefined); // 部门树选项
|
||||||
|
const locationOptions = ref(undefined); // 地点树选项
|
||||||
|
const supplierListOptions = ref(undefined); // 供应商列表选项
|
||||||
|
const statusRestrictedOptions = ref(undefined); // 权限级别选项
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {},
|
form: {},
|
||||||
antibioticForm: {},
|
antibioticForm: {},
|
||||||
@@ -726,33 +727,42 @@ const props = defineProps({
|
|||||||
type: Object,
|
type: Object,
|
||||||
required: false,
|
required: false,
|
||||||
},
|
},
|
||||||
|
supplierListOptions: {
|
||||||
|
type: Object,
|
||||||
|
required: false,
|
||||||
|
},
|
||||||
|
statusRestrictedOptions: {
|
||||||
|
type: Object,
|
||||||
|
required: false,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/** 查询部门下拉树结构 */
|
||||||
|
function getDeptTree() {
|
||||||
|
console.log("查询部门下拉树结构");
|
||||||
|
deptTreeSelect().then((response) => {
|
||||||
|
console.log(response, "response查询部门下拉树结构");
|
||||||
|
deptOptions.value = response.data.records;
|
||||||
|
console.log(deptOptions.value, "部门下拉树结构");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
/** 查询地点下拉树结构 */
|
||||||
|
function getLocationTree() {
|
||||||
|
locationTreeSelect().then((response) => {
|
||||||
|
console.log(response, "response查询部门下拉树结构");
|
||||||
|
locationOptions.value = response.data.records;
|
||||||
|
console.log(locationOptions.value, "部门下拉树结构");
|
||||||
|
});
|
||||||
|
}
|
||||||
// 显示弹框
|
// 显示弹框
|
||||||
function show() {
|
function show() {
|
||||||
// queryParams.roleId = props.roleId;
|
getLocationTree();
|
||||||
// getList();
|
getDeptTree();
|
||||||
reset();
|
reset();
|
||||||
statusFlagOptions.value = props.status;
|
statusFlagOptions.value = props.status;
|
||||||
domainEnumOptions.value = props.domainEnum;
|
domainEnumOptions.value = props.domainEnum;
|
||||||
// currentData.value.activeFlag == 1
|
supplierListOptions.value = props.supplierListOptions;
|
||||||
// ? (currentData.value.activeFlag = true)
|
statusRestrictedOptions.value = props.statusRestrictedOptions;
|
||||||
// : (currentData.value.activeFlag = false); //是否为活性
|
|
||||||
// currentData.value.ybMatchFlag == 1
|
|
||||||
// ? (currentData.value.ybMatchFlag = true)
|
|
||||||
// : (currentData.value.ybMatchFlag = false); //医保是否对码
|
|
||||||
// currentData.value.skinTestFlag == 1
|
|
||||||
// ? (currentData.value.skinTestFlag = true)
|
|
||||||
// : (currentData.value.skinTestFlag = false); //是否皮试
|
|
||||||
// currentData.value.injectFlag == 1
|
|
||||||
// ? (currentData.value.injectFlag = true)
|
|
||||||
// : (currentData.value.injectFlag = false); //是否为注射药物
|
|
||||||
// currentData.value.restrictedFlag == 1
|
|
||||||
// ? (currentData.value.restrictedFlag = true)
|
|
||||||
// : (currentData.value.restrictedFlag = false); //是否限制使用
|
|
||||||
// currentData.value.childrenFlag == 1
|
|
||||||
// ? (currentData.value.childrenFlag = true)
|
|
||||||
// : (currentData.value.childrenFlag = false); //儿童用药标志
|
|
||||||
// console.log(currentData.value, "currentData");
|
// console.log(currentData.value, "currentData");
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
}
|
}
|
||||||
@@ -764,15 +774,53 @@ function edit() {
|
|||||||
console.log(props.item);
|
console.log(props.item);
|
||||||
console.log("props.item");
|
console.log("props.item");
|
||||||
reset();
|
reset();
|
||||||
|
getLocationTree();
|
||||||
|
getDeptTree();
|
||||||
form.value = props.item;
|
form.value = props.item;
|
||||||
|
setFlag(form.value);
|
||||||
statusFlagOptions.value = props.status;
|
statusFlagOptions.value = props.status;
|
||||||
domainEnumOptions.value = props.domainEnum;
|
domainEnumOptions.value = props.domainEnum;
|
||||||
|
supplierListOptions.value = props.supplierListOptions;
|
||||||
|
statusRestrictedOptions.value = props.statusRestrictedOptions;
|
||||||
visible.value = true;
|
visible.value = true;
|
||||||
}
|
}
|
||||||
|
// checkbox值转换
|
||||||
|
function setFlag(data) {
|
||||||
|
data.activeFlag == 1 ? (data.activeFlag = true) : (data.activeFlag = false); //是否为活性
|
||||||
|
data.ybMatchFlag == 1
|
||||||
|
? (data.ybMatchFlag = true)
|
||||||
|
: (data.ybMatchFlag = false); //医保是否对码
|
||||||
|
data.skinTestFlag == 1
|
||||||
|
? (data.skinTestFlag = true)
|
||||||
|
: (data.skinTestFlag = false); //是否皮试
|
||||||
|
data.injectFlag == 1 ? (data.injectFlag = true) : (data.injectFlag = false); //是否为注射药物
|
||||||
|
data.restrictedFlag == 1
|
||||||
|
? (data.restrictedFlag = true)
|
||||||
|
: (data.restrictedFlag = false); //是否限制使用
|
||||||
|
data.childrenFlag == 1
|
||||||
|
? (data.childrenFlag = true)
|
||||||
|
: (data.childrenFlag = false); //儿童用药标志
|
||||||
|
data.antibioticFlag == 1
|
||||||
|
? (data.antibioticFlag = true)
|
||||||
|
: (data.antibioticFlag = false); //抗生素
|
||||||
|
data.selfFlag == 1
|
||||||
|
? (data.selfFlag = true)
|
||||||
|
: (data.selfFlag = false); //自制
|
||||||
|
}
|
||||||
/** 重置操作表单 */
|
/** 重置操作表单 */
|
||||||
function reset() {
|
function reset() {
|
||||||
form.value = {
|
form.value = {
|
||||||
id: undefined,
|
id: undefined,
|
||||||
|
medicationDefId: undefined,
|
||||||
|
orgId: undefined,
|
||||||
|
locationId: undefined,
|
||||||
|
activeFlag: undefined,
|
||||||
|
effectiveDate: undefined,
|
||||||
|
expirationDate: undefined,
|
||||||
|
doseFrom: undefined,
|
||||||
|
rateCode: undefined,
|
||||||
|
approvalNumber: undefined,
|
||||||
|
definition: undefined,
|
||||||
name: undefined,
|
name: undefined,
|
||||||
pyStr: undefined,
|
pyStr: undefined,
|
||||||
wbStr: undefined,
|
wbStr: undefined,
|
||||||
@@ -804,10 +852,23 @@ function reset() {
|
|||||||
ybMatchFlag: undefined,
|
ybMatchFlag: undefined,
|
||||||
ybNo: undefined,
|
ybNo: undefined,
|
||||||
manufacturerId: undefined,
|
manufacturerId: undefined,
|
||||||
|
manufacturerText: undefined,
|
||||||
supplyId: undefined,
|
supplyId: undefined,
|
||||||
restrictedFlag: undefined,
|
restrictedFlag: undefined,
|
||||||
restrictedScope: undefined,
|
restrictedScope: undefined,
|
||||||
characteristic: undefined,
|
characteristic: undefined,
|
||||||
|
purchasePrice: undefined,
|
||||||
|
retailPrice: undefined,
|
||||||
|
maximumRetailPrice: undefined,
|
||||||
|
ybType: undefined,
|
||||||
|
minimalFee: undefined,
|
||||||
|
nationalDrugCode: undefined,
|
||||||
|
ybDrugCode: undefined,
|
||||||
|
antibioticFlag: undefined,
|
||||||
|
selfFlag: undefined,
|
||||||
|
minRateCode: undefined,
|
||||||
|
maxRateCode: undefined,
|
||||||
|
partAttributeEnum: undefined,
|
||||||
};
|
};
|
||||||
proxy.resetForm("medicationRef");
|
proxy.resetForm("medicationRef");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,11 +48,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item
|
<el-form-item label="状态" prop="statusEnum" label-width="100">
|
||||||
label="状态"
|
|
||||||
prop="statusEnum"
|
|
||||||
label-width="100"
|
|
||||||
>
|
|
||||||
<el-select v-model="queryParams.statusEnum" clearable>
|
<el-select v-model="queryParams.statusEnum" clearable>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="status in statusFlagOptions"
|
v-for="status in statusFlagOptions"
|
||||||
@@ -64,17 +60,21 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<el-col :span="4">
|
||||||
<el-form-item label="医保对码" prop="ybMatchFlag" label-width="80">
|
<el-form-item
|
||||||
|
label="医保对码"
|
||||||
|
prop="ybMatchFlag"
|
||||||
|
label-width="80"
|
||||||
|
>
|
||||||
<el-select
|
<el-select
|
||||||
v-model="queryParams.ybMatchFlag"
|
v-model="queryParams.ybMatchFlag"
|
||||||
placeholder=""
|
placeholder=""
|
||||||
clearable
|
clearable
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="domainEnum in domainEnumOptions"
|
v-for="ybMatch in statusWeatherOption"
|
||||||
:key="domainEnum.value"
|
:key="ybMatch.value"
|
||||||
:label="domainEnum.info"
|
:label="ybMatch.info"
|
||||||
:value="domainEnum.value"
|
:value="ybMatch.value"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -184,8 +184,15 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="药品状态"
|
label="药品状态"
|
||||||
align="center"
|
align="center"
|
||||||
key="statusEnum"
|
key="statusEnum_enumText"
|
||||||
prop="statusEnum"
|
prop="statusEnum_enumText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="医保类别"
|
||||||
|
align="center"
|
||||||
|
key="ybType_enumText"
|
||||||
|
prop="ybType_enumText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -206,23 +213,30 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="药品分类"
|
label="药品分类"
|
||||||
align="center"
|
align="center"
|
||||||
key="categoryCode"
|
key="categoryCode_dictText"
|
||||||
prop="categoryCode"
|
prop="categoryCode_dictText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="90"
|
width="90"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="所属科室"
|
label="所属科室"
|
||||||
align="center"
|
align="center"
|
||||||
key="orgId"
|
key="orgId_dictText"
|
||||||
prop="orgId"
|
prop="orgId_dictText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="地点"
|
||||||
|
align="center"
|
||||||
|
key="locationId_dictText"
|
||||||
|
prop="locationId_dictText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="剂型"
|
label="剂型"
|
||||||
align="center"
|
align="center"
|
||||||
key="doseFormCode"
|
key="doseFormCode_dictText"
|
||||||
prop="doseFormCode"
|
prop="doseFormCode_dictText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -243,8 +257,8 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="是否为活性"
|
label="是否为活性"
|
||||||
align="center"
|
align="center"
|
||||||
key="activeFlag"
|
key="activeFlag_enumText"
|
||||||
prop="activeFlag"
|
prop="activeFlag_enumText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -254,13 +268,13 @@
|
|||||||
prop="lotNumber"
|
prop="lotNumber"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<!-- <el-table-column
|
||||||
label="拆零价"
|
label="拆零价"
|
||||||
align="center"
|
align="center"
|
||||||
key="statusEnum"
|
key="statusEnum"
|
||||||
prop="statusEnum"
|
prop="statusEnum"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/> -->
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="生效日期"
|
label="生效日期"
|
||||||
align="center"
|
align="center"
|
||||||
@@ -286,16 +300,15 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="用法"
|
label="用法"
|
||||||
align="center"
|
align="center"
|
||||||
key="methodCode"
|
key="methodCode_dictText"
|
||||||
prop="methodCode"
|
prop="methodCode_dictText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="用药频次"
|
label="用药频次"
|
||||||
align="center"
|
align="center"
|
||||||
key="rateCode"
|
key="rateCode_dictText"
|
||||||
prop="rateCode"
|
prop="rateCode_dictText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="100"
|
width="100"
|
||||||
/>
|
/>
|
||||||
@@ -309,8 +322,8 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="剂量单位"
|
label="剂量单位"
|
||||||
align="center"
|
align="center"
|
||||||
key="doseUnitCode"
|
key="doseUnitCode_dictText"
|
||||||
prop="doseUnitCode"
|
prop="doseUnitCode_dictText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -328,11 +341,35 @@
|
|||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="90"
|
width="90"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="用量限定"
|
||||||
|
align="center"
|
||||||
|
key="usageLimit"
|
||||||
|
prop="usageLimit"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="DDD值"
|
||||||
|
align="center"
|
||||||
|
key="dddCode_dictText"
|
||||||
|
prop="dddCode_dictText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="DDD单位"
|
||||||
|
align="center"
|
||||||
|
key="dddUnitCode_dictText"
|
||||||
|
prop="dddUnitCode_dictText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="适用范围"
|
label="适用范围"
|
||||||
align="center"
|
align="center"
|
||||||
key="domainEnum"
|
key="domainEnum_enumText"
|
||||||
prop="domainEnum"
|
prop="domainEnum_enumText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -381,10 +418,10 @@
|
|||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="最小单位"
|
label="财务统计类型"
|
||||||
align="center"
|
align="center"
|
||||||
key="minUnitCode"
|
key="minUnitCode_dictText"
|
||||||
prop="minUnitCode"
|
prop="minUnitCode_dictText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="90"
|
width="90"
|
||||||
/>
|
/>
|
||||||
@@ -429,8 +466,8 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="医保是否对码"
|
label="医保是否对码"
|
||||||
align="center"
|
align="center"
|
||||||
key="ybMatchFlag"
|
key="ybMatchFlag_enumText"
|
||||||
prop="ybMatchFlag"
|
prop="ybMatchFlag_enumText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -451,16 +488,16 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="是否皮试"
|
label="是否皮试"
|
||||||
align="center"
|
align="center"
|
||||||
key="skinTestFlag"
|
key="skinTestFlag_enumText"
|
||||||
prop="skinTestFlag"
|
prop="skinTestFlag_enumText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="90"
|
width="90"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="是否为注射药物"
|
label="是否为注射药物"
|
||||||
align="center"
|
align="center"
|
||||||
key="injectFlag"
|
key="injectFlag_enumText"
|
||||||
prop="injectFlag"
|
prop="injectFlag_enumText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="90"
|
width="90"
|
||||||
/>
|
/>
|
||||||
@@ -471,19 +508,26 @@
|
|||||||
prop="manufacturerId"
|
prop="manufacturerId"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="生产厂家名称"
|
||||||
|
align="center"
|
||||||
|
key="manufacturerName"
|
||||||
|
prop="manufacturerName"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="供应商"
|
label="供应商"
|
||||||
align="center"
|
align="center"
|
||||||
key="supplyId"
|
key="supplyId_dictText"
|
||||||
prop="supplyId"
|
prop="supplyId_dictText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="90"
|
width="90"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="是否限制使用"
|
label="是否限制使用"
|
||||||
align="center"
|
align="center"
|
||||||
key="restrictedFlag"
|
key="restrictedFlag_enumText"
|
||||||
prop="restrictedFlag"
|
prop="restrictedFlag_enumText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="90"
|
width="90"
|
||||||
/>
|
/>
|
||||||
@@ -498,8 +542,8 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="儿童用药标志"
|
label="儿童用药标志"
|
||||||
align="center"
|
align="center"
|
||||||
key="childrenFlag"
|
key="childrenFlag_enumText"
|
||||||
prop="childrenFlag"
|
prop="childrenFlag_enumText"
|
||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@@ -510,6 +554,94 @@
|
|||||||
:show-overflow-tooltip="true"
|
:show-overflow-tooltip="true"
|
||||||
width="90"
|
width="90"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="贯标国家编码"
|
||||||
|
align="center"
|
||||||
|
key="nationalDrugCode"
|
||||||
|
prop="nationalDrugCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="拆分属性"
|
||||||
|
align="center"
|
||||||
|
key="partAttributeEnum_enumText"
|
||||||
|
prop="partAttributeEnum_enumText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="抗生素分类"
|
||||||
|
align="center"
|
||||||
|
key="antibioticCode_dictText"
|
||||||
|
prop="antibioticCode_dictText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="权限限制"
|
||||||
|
align="center"
|
||||||
|
key="restrictedEnum_enumText"
|
||||||
|
prop="restrictedEnum_enumText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="是否自制"
|
||||||
|
align="center"
|
||||||
|
key=" selfFlag_enumText"
|
||||||
|
prop=" selfFlag_enumText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="是否抗生素"
|
||||||
|
align="center"
|
||||||
|
key="antibioticFlag_enumText"
|
||||||
|
prop="antibioticFlag_enumText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="基药标识"
|
||||||
|
align="center"
|
||||||
|
key="basicFlag_enumText"
|
||||||
|
prop="basicFlag_enumText"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="常规单位"
|
||||||
|
align="center"
|
||||||
|
key="baseUnitCode"
|
||||||
|
prop="baseUnitCode"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="当前库存数量(常规单位)"
|
||||||
|
align="center"
|
||||||
|
key="baseQuantity"
|
||||||
|
prop="baseQuantity"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="当前库存数量(最小单位数量)"
|
||||||
|
align="center"
|
||||||
|
key="minQuantity"
|
||||||
|
prop="minQuantity"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
label="售价"
|
||||||
|
align="center"
|
||||||
|
key="price"
|
||||||
|
prop="price"
|
||||||
|
:show-overflow-tooltip="true"
|
||||||
|
width="90"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
@@ -526,14 +658,14 @@
|
|||||||
v-hasPermi="['system:user:edit']"
|
v-hasPermi="['system:user:edit']"
|
||||||
>编辑</el-button
|
>编辑</el-button
|
||||||
>
|
>
|
||||||
<el-button
|
<!-- <el-button
|
||||||
link
|
link
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="View"
|
icon="View"
|
||||||
@click="openViewMedicine(scope.row)"
|
@click="openViewMedicine(scope.row)"
|
||||||
v-hasPermi="['system:user:remove']"
|
v-hasPermi="['system:user:remove']"
|
||||||
>查看</el-button
|
>查看</el-button
|
||||||
>
|
> -->
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
@@ -551,6 +683,8 @@
|
|||||||
:item="currentData"
|
:item="currentData"
|
||||||
:domainEnum="domainEnumOptions"
|
:domainEnum="domainEnumOptions"
|
||||||
:status="statusFlagOptions"
|
:status="statusFlagOptions"
|
||||||
|
:supplierListOptions="supplierListOptions"
|
||||||
|
:statusRestrictedOptions="statusRestrictedOptions"
|
||||||
@submit="submitForm"
|
@submit="submitForm"
|
||||||
/>
|
/>
|
||||||
<medicine-view-dialog
|
<medicine-view-dialog
|
||||||
@@ -595,6 +729,8 @@ const medicationOptions = ref(undefined);
|
|||||||
const statusFlagOptions = ref(undefined);
|
const statusFlagOptions = ref(undefined);
|
||||||
const domainEnumOptions = ref(undefined);
|
const domainEnumOptions = ref(undefined);
|
||||||
const supplierListOptions = ref(undefined);
|
const supplierListOptions = ref(undefined);
|
||||||
|
const statusWeatherOption = ref(undefined);
|
||||||
|
const statusRestrictedOptions = ref(undefined);
|
||||||
// 使用 ref 定义当前药品数据
|
// 使用 ref 定义当前药品数据
|
||||||
const currentData = ref({});
|
const currentData = ref({});
|
||||||
// 使用 ref 定义当前查看药品数据
|
// 使用 ref 定义当前查看药品数据
|
||||||
@@ -611,7 +747,7 @@ const data = reactive({
|
|||||||
searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
searchKey: undefined, // 品名/商品名/英文品名/编码/拼音
|
||||||
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
statusEnum: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
||||||
ybMatchFlag: undefined, // 是否医保匹配(包括 1:是,0:否)
|
ybMatchFlag: undefined, // 是否医保匹配(包括 1:是,0:否)
|
||||||
status: undefined, // 状态(包括 1:预置,2:启用,3:停用)
|
categoryCode: undefined, // 目录
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
// name: [{ required: true, message: "名称不能为空", trigger: "blur" }],
|
// name: [{ required: true, message: "名称不能为空", trigger: "blur" }],
|
||||||
@@ -636,15 +772,18 @@ const filterNode = (value, data) => {
|
|||||||
function getMedicationCategoryList() {
|
function getMedicationCategoryList() {
|
||||||
getMedicationCategory().then((response) => {
|
getMedicationCategory().then((response) => {
|
||||||
console.log(response, "response药品目录分类查询下拉树结构");
|
console.log(response, "response药品目录分类查询下拉树结构");
|
||||||
medicationOptions.value = response.data.medicationListOptions;
|
medicationOptions.value = response.data.medicationCategoryCodeOptions;
|
||||||
statusFlagOptions.value = response.data.statusFlagOptions;
|
statusFlagOptions.value = response.data.statusFlagOptions;
|
||||||
domainEnumOptions.value = response.data.domainFlagOptions;
|
domainEnumOptions.value = response.data.domainFlagOptions;
|
||||||
supplierListOptions.value = response.data.supplierListOptions;
|
supplierListOptions.value = response.data.supplierListOptions;
|
||||||
|
statusWeatherOption.value = response.data.statusWeatherOptions;
|
||||||
|
statusRestrictedOptions.value = response.data.statusRestrictedOptions;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/** 查询病种目录列表 */
|
/** 查询病种目录列表 */
|
||||||
function getList() {
|
function getList() {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
console.log(queryParams.value, "queryParams***********************");
|
||||||
getMedicationList(queryParams.value).then((res) => {
|
getMedicationList(queryParams.value).then((res) => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
console.log(res, "res");
|
console.log(res, "res");
|
||||||
@@ -654,12 +793,13 @@ function getList() {
|
|||||||
}
|
}
|
||||||
/** 节点单击事件 */
|
/** 节点单击事件 */
|
||||||
function handleNodeClick(data) {
|
function handleNodeClick(data) {
|
||||||
queryParams.value.deptId = data.id;
|
queryParams.value.categoryCode = data.value;
|
||||||
handleQuery();
|
handleQuery();
|
||||||
}
|
}
|
||||||
/** 搜索按钮操作 */
|
/** 搜索按钮操作 */
|
||||||
function handleQuery() {
|
function handleQuery() {
|
||||||
queryParams.value.pageNo = 1;
|
queryParams.value.pageNo = 1;
|
||||||
|
console.log(queryParams.value, "queryParams");
|
||||||
getList();
|
getList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -740,25 +880,36 @@ function openAddMedicine() {
|
|||||||
}
|
}
|
||||||
/** 打开编辑弹窗 */
|
/** 打开编辑弹窗 */
|
||||||
function openEditMedicine(row) {
|
function openEditMedicine(row) {
|
||||||
currentData.value = JSON.parse(JSON.stringify(row));
|
getMedicationOne(row.id).then((response) => {
|
||||||
currentData.value.activeFlag == 1
|
console.log(response, "responsebbbb", row.id);
|
||||||
? (currentData.value.activeFlag = true)
|
currentData.value = response.data;
|
||||||
: (currentData.value.activeFlag = false); //是否为活性
|
// getList();
|
||||||
currentData.value.ybMatchFlag == 1
|
});
|
||||||
? (currentData.value.ybMatchFlag = true)
|
// currentData.value = JSON.parse(JSON.stringify(row));
|
||||||
: (currentData.value.ybMatchFlag = false); //医保是否对码
|
// currentData.value.activeFlag == 1
|
||||||
currentData.value.skinTestFlag == 1
|
// ? (currentData.value.activeFlag = true)
|
||||||
? (currentData.value.skinTestFlag = true)
|
// : (currentData.value.activeFlag = false); //是否为活性
|
||||||
: (currentData.value.skinTestFlag = false); //是否皮试
|
// currentData.value.ybMatchFlag == 1
|
||||||
currentData.value.injectFlag == 1
|
// ? (currentData.value.ybMatchFlag = true)
|
||||||
? (currentData.value.injectFlag = true)
|
// : (currentData.value.ybMatchFlag = false); //医保是否对码
|
||||||
: (currentData.value.injectFlag = false); //是否为注射药物
|
// currentData.value.skinTestFlag == 1
|
||||||
currentData.value.restrictedFlag == 1
|
// ? (currentData.value.skinTestFlag = true)
|
||||||
? (currentData.value.restrictedFlag = true)
|
// : (currentData.value.skinTestFlag = false); //是否皮试
|
||||||
: (currentData.value.restrictedFlag = false); //是否限制使用
|
// currentData.value.injectFlag == 1
|
||||||
currentData.value.childrenFlag == 1
|
// ? (currentData.value.injectFlag = true)
|
||||||
? (currentData.value.childrenFlag = true)
|
// : (currentData.value.injectFlag = false); //是否为注射药物
|
||||||
: (currentData.value.childrenFlag = false); //儿童用药标志
|
// currentData.value.restrictedFlag == 1
|
||||||
|
// ? (currentData.value.restrictedFlag = true)
|
||||||
|
// : (currentData.value.restrictedFlag = false); //是否限制使用
|
||||||
|
// currentData.value.childrenFlag == 1
|
||||||
|
// ? (currentData.value.childrenFlag = true)
|
||||||
|
// : (currentData.value.childrenFlag = false); //儿童用药标志
|
||||||
|
// currentData.value.antibioticFlag == 1
|
||||||
|
// ? (currentData.value.antibioticFlag = true)
|
||||||
|
// : (currentData.value.antibioticFlag = false); //抗生素标志
|
||||||
|
// currentData.value.selfFlag == 1
|
||||||
|
// ? (currentData.value.selfFlag = true)
|
||||||
|
// : (currentData.value.selfFlag = false); //自制标志
|
||||||
console.log(currentData.value, "currentData");
|
console.log(currentData.value, "currentData");
|
||||||
// 确保子组件已经接收到最新的 props
|
// 确保子组件已经接收到最新的 props
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
@@ -799,8 +950,14 @@ function submitForm(formData) {
|
|||||||
formData.childrenFlag == true
|
formData.childrenFlag == true
|
||||||
? (formData.childrenFlag = 1)
|
? (formData.childrenFlag = 1)
|
||||||
: (formData.childrenFlag = 0); //儿童用药标志
|
: (formData.childrenFlag = 0); //儿童用药标志
|
||||||
|
formData.antibioticFlag == true
|
||||||
|
? (formData.antibioticFlag = 1)
|
||||||
|
: (formData.antibioticFlag = 0); //抗生素标志
|
||||||
|
formData.selfFlag == true
|
||||||
|
? (formData.selfFlag = 1)
|
||||||
|
: (formData.selfFlag = 0); //自制标志
|
||||||
formData.status == true ? (formData.status = 1) : (formData.status = 0); //启用状态
|
formData.status == true ? (formData.status = 1) : (formData.status = 0); //启用状态
|
||||||
|
console.log(formData, "submitForm");
|
||||||
if (formData.id != undefined) {
|
if (formData.id != undefined) {
|
||||||
// form.value.status
|
// form.value.status
|
||||||
// ? (form.value.statusEnum = "3")
|
// ? (form.value.statusEnum = "3")
|
||||||
|
|||||||
Reference in New Issue
Block a user