feat(transfer): add warehouse type support and lab specimen tables
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "openhis",
|
||||
"version": "3.8.8",
|
||||
"version": "3.8.9",
|
||||
"description": "OpenHIS管理系统",
|
||||
"author": "OpenHIS",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -516,6 +516,7 @@ import {
|
||||
getPharmacyList,
|
||||
getTransferProductDetail,
|
||||
getTransferProductDetails,
|
||||
getWarehouseList,
|
||||
productTransferApproved,
|
||||
reject,
|
||||
submitApproval,
|
||||
@@ -775,6 +776,17 @@ function handleChangePurposeTypeEnum(value, type) {
|
||||
}).catch(error => {
|
||||
console.error('Error fetching dispensary list:', error);
|
||||
});
|
||||
} else if (value == 17) {
|
||||
// 耗材库类型
|
||||
getWarehouseList().then((res) => {
|
||||
purposeTypeListOptions.value = res.data;
|
||||
if (!route.query.supplyBusNo && !type) {
|
||||
receiptHeaderForm.purposeLocationId = '';
|
||||
receiptHeaderForm.purposeLocationId1 = '';
|
||||
}
|
||||
}).catch(error => {
|
||||
console.error('Error fetching warehouse list:', error);
|
||||
});
|
||||
} else {
|
||||
purposeTypeListOptions.value = [];
|
||||
}
|
||||
@@ -801,6 +813,17 @@ function handleChangeSourceTypeEnum(value, type) {
|
||||
}).catch(error => {
|
||||
console.error('Error fetching dispensary list:', error);
|
||||
});
|
||||
} else if (value == 17) {
|
||||
// 耗材库类型
|
||||
getWarehouseList().then((res) => {
|
||||
sourceTypeListOptions.value = res.data;
|
||||
if (!route.query.supplyBusNo && !type) {
|
||||
receiptHeaderForm.sourceLocationId = '';
|
||||
receiptHeaderForm.sourceLocationId1 = '';
|
||||
}
|
||||
}).catch(error => {
|
||||
console.error('Error fetching warehouse list:', error);
|
||||
});
|
||||
} else {
|
||||
sourceTypeListOptions.value = [];
|
||||
}
|
||||
|
||||
@@ -123,6 +123,14 @@ export function getDispensaryList() {
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
// 获取耗材库列表
|
||||
export function getWarehouseList() {
|
||||
return request({
|
||||
url: '/app-common/warehouse-list',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
// 获取仓库药房列表
|
||||
export function getpharmacyCabinetList() {
|
||||
return request({
|
||||
|
||||
@@ -616,6 +616,7 @@ import {
|
||||
getInit,
|
||||
getPharmacyList,
|
||||
getTransferProductDetail,
|
||||
getWarehouseList,
|
||||
productTransferApproved,
|
||||
reject,
|
||||
submitApproval,
|
||||
@@ -1148,6 +1149,15 @@ function handleChangePurposeTypeEnum(value, type) {
|
||||
receiptHeaderForm.purposeLocationId1 = '';
|
||||
}
|
||||
});
|
||||
} else if (value == 17) {
|
||||
// 耗材库类型
|
||||
getWarehouseList().then((res) => {
|
||||
purposeTypeListOptions.value = res.data;
|
||||
if (!route.query.supplyBusNo && !type) {
|
||||
receiptHeaderForm.purposeLocationId = '';
|
||||
receiptHeaderForm.purposeLocationId1 = '';
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1169,6 +1179,15 @@ function handleChangeSourceTypeEnum(value, type) {
|
||||
receiptHeaderForm.sourceLocationId1 = '';
|
||||
}
|
||||
});
|
||||
} else if (value == 17) {
|
||||
// 耗材库类型
|
||||
getWarehouseList().then((res) => {
|
||||
sourceTypeListOptions.value = res.data;
|
||||
if (!route.query.supplyBusNo && !type) {
|
||||
receiptHeaderForm.sourceLocationId = '';
|
||||
receiptHeaderForm.sourceLocationId1 = '';
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user