fix(doctorstation): 修复诊断和手术模块的数据类型及权限过滤问题
- 修复诊断模块中medTypeCode字段使用数字类型字典值而非字符串 - 在报损管理中添加权限过滤后的数据回退机制,当权限过滤无数据时获取全部数据 - 为报损管理新增getPharmacyListAll和getDispensaryListAll接口函数 - 在手术申请模块中添加患者选中校验,防止未选择患者时的操作异常 - 修复手术模块的编辑、查看、删除操作缺少患者校验的问题
This commit is contained in:
@@ -88,8 +88,16 @@ export function getCount(queryParams) {
|
||||
})
|
||||
}
|
||||
|
||||
// 获取药房列表
|
||||
// 获取药房列表(带权限过滤)
|
||||
export function getPharmacyList() {
|
||||
return request({
|
||||
url: '/app-common/inventory-pharmacy-list',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 获取药房列表(无权限过滤,作为回退)
|
||||
export function getPharmacyListAll() {
|
||||
return request({
|
||||
url: '/app-common/pharmacy-list',
|
||||
method: 'get',
|
||||
@@ -104,8 +112,16 @@ export function getPharmacyCabinetList() {
|
||||
}
|
||||
|
||||
|
||||
// 获取药库列表
|
||||
// 获取药库列表(带权限过滤)
|
||||
export function getDispensaryList() {
|
||||
return request({
|
||||
url: '/app-common/inventory-cabinet-list',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 获取药库列表(无权限过滤,作为回退)
|
||||
export function getDispensaryListAll() {
|
||||
return request({
|
||||
url: '/app-common/cabinet-list',
|
||||
method: 'get',
|
||||
|
||||
@@ -532,10 +532,12 @@ import {
|
||||
getBusNoInit,
|
||||
getCount,
|
||||
getDispensaryList,
|
||||
getDispensaryListAll,
|
||||
getInit,
|
||||
getMedicineList,
|
||||
getPharmacyCabinetList,
|
||||
getPharmacyList,
|
||||
getPharmacyListAll,
|
||||
getWarehouseList,
|
||||
getTransferProductDetail,
|
||||
lossReportApproved,
|
||||
@@ -1243,14 +1245,28 @@ function handleLocationClick(id, itemId, index) {
|
||||
function handleChangePurposeTypeEnum(value) {
|
||||
if (value == 16) {
|
||||
getPharmacyList().then((res) => {
|
||||
purposeTypeListOptions.value = res.data;
|
||||
if (res.data && res.data.length > 0) {
|
||||
purposeTypeListOptions.value = res.data;
|
||||
} else {
|
||||
// 权限过滤后无数据,尝试获取所有药房
|
||||
getPharmacyListAll().then((resAll) => {
|
||||
purposeTypeListOptions.value = resAll.data || [];
|
||||
});
|
||||
}
|
||||
if (!route.query.supplyBusNo) {
|
||||
receiptHeaderForm.lossLocationId = '';
|
||||
}
|
||||
});
|
||||
} else if (value == 11) {
|
||||
getDispensaryList().then((res) => {
|
||||
purposeTypeListOptions.value = res.data;
|
||||
if (res.data && res.data.length > 0) {
|
||||
purposeTypeListOptions.value = res.data;
|
||||
} else {
|
||||
// 权限过滤后无数据,尝试获取所有药库
|
||||
getDispensaryListAll().then((resAll) => {
|
||||
purposeTypeListOptions.value = resAll.data || [];
|
||||
});
|
||||
}
|
||||
if (!route.query.supplyBusNo) {
|
||||
receiptHeaderForm.lossLocationId = '';
|
||||
}
|
||||
@@ -1264,7 +1280,14 @@ function handleChangelossTypeEnum(value) {
|
||||
if (value == 16) {
|
||||
// 药房
|
||||
getPharmacyList().then((res) => {
|
||||
sourceTypeListOptions.value = res.data;
|
||||
if (res.data && res.data.length > 0) {
|
||||
sourceTypeListOptions.value = res.data;
|
||||
} else {
|
||||
// 权限过滤后无数据,尝试获取所有药房
|
||||
getPharmacyListAll().then((resAll) => {
|
||||
sourceTypeListOptions.value = resAll.data || [];
|
||||
});
|
||||
}
|
||||
if (!route.query.supplyBusNo) {
|
||||
receiptHeaderForm.lossLocationId = '';
|
||||
}
|
||||
@@ -1272,7 +1295,14 @@ function handleChangelossTypeEnum(value) {
|
||||
} else if (value == 11) {
|
||||
// 药库
|
||||
getDispensaryList().then((res) => {
|
||||
sourceTypeListOptions.value = res.data;
|
||||
if (res.data && res.data.length > 0) {
|
||||
sourceTypeListOptions.value = res.data;
|
||||
} else {
|
||||
// 权限过滤后无数据,尝试获取所有药库
|
||||
getDispensaryListAll().then((resAll) => {
|
||||
sourceTypeListOptions.value = resAll.data || [];
|
||||
});
|
||||
}
|
||||
if (!route.query.supplyBusNo) {
|
||||
receiptHeaderForm.lossLocationId = '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user