diff --git a/src/views/health/marRecord/index.vue b/src/views/health/marRecord/index.vue index 96b2abf..710e940 100644 --- a/src/views/health/marRecord/index.vue +++ b/src/views/health/marRecord/index.vue @@ -225,6 +225,7 @@ const data = reactive({ dosage: [{ required: true, message: '用药剂量不能为空', trigger: 'blur' }], resource: [{ required: true, message: '药品来源不能为空', trigger: 'blur' }], place: [{ required: true, message: '用药地点不能为空', trigger: 'blur' }], + unit: [{ required: true, message: '用药单位不能为空', trigger: 'blur' }], personId: [{ required: true, message: '人员姓名不能为空', trigger: 'blur' }] } }) diff --git a/src/views/health/medicineStockIn/index.vue b/src/views/health/medicineStockIn/index.vue index 0f6e5df..136c292 100644 --- a/src/views/health/medicineStockIn/index.vue +++ b/src/views/health/medicineStockIn/index.vue @@ -84,7 +84,13 @@ - + + + + + + + @@ -116,7 +122,7 @@ - + @@ -168,7 +174,7 @@ import { listMedicineStockIn, getMedicineStockIn, delMedicineStockIn, addMedicin import { listMedicineBasic, getMedicineBasic } from '@/api/health/medicineBasic' import { require } from '@/utils/require' const { proxy } = getCurrentInstance() -const { used_state, package_unit, medical_unit } = proxy.useDict('used_state', 'package_unit', 'medical_unit') +const { used_state, package_unit, medical_unit, mar_type } = proxy.useDict('used_state', 'package_unit', 'medical_unit', 'mar_type') const medicineStockInList = ref([]) const open = ref(false) @@ -236,8 +242,19 @@ const handleOperate = (operate, row) => { const { queryParams, form, rules, queryMedicineParams } = toRefs(data) const handleQuantityChange = (val) => { - getMedicineBasic(form.value.medicineId).then((response) => { - form.value.totalCount = response.data.specifications * val + if (form.value.medicineId != null) { + getMedicineBasic(form.value.medicineId).then((response) => { + form.value.totalCount = response.data.specifications * val + }) + } +} +const handleMarTypeChange = (val) => { + queryMedicineParams.value.treatmentType = val + form.value.medicineName = '' + form.value.name = '' + form.value.medicineId = null + listMedicineBasic(queryMedicineParams.value).then((response) => { + medicineList.value = response.rows }) } diff --git a/src/views/health/temperatureStatistic/index.vue b/src/views/health/temperatureStatistic/index.vue index fcb5861..95860b2 100644 --- a/src/views/health/temperatureStatistic/index.vue +++ b/src/views/health/temperatureStatistic/index.vue @@ -185,7 +185,7 @@ - +