需求-78-增加门诊医生开立检验申请单的开立与删除功能以及页面的调整。
This commit is contained in:
@@ -842,6 +842,37 @@ export function getTestResult(queryParams) {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询检验申请单列表
|
||||
* @param {Object} queryParams - 查询参数
|
||||
* @param {number} queryParams.pageNo - 页码(可选,默认 1)
|
||||
* @param {number} queryParams.pageSize - 每页数量(可选,默认 10)
|
||||
* @param {string} queryParams.encounterId - 就诊 ID(可选,用于筛选特定就诊记录)
|
||||
* @returns {Promise} 分页数据 { code: 200, data: { records: Array, total: number } }
|
||||
*/
|
||||
export function getApplyList(queryParams) {
|
||||
const params = {};
|
||||
|
||||
// 添加分页参数
|
||||
if (queryParams && queryParams.pageNo !== undefined) {
|
||||
params.pageNo = queryParams.pageNo;
|
||||
}
|
||||
if (queryParams && queryParams.pageSize !== undefined) {
|
||||
params.pageSize = queryParams.pageSize;
|
||||
}
|
||||
|
||||
// 添加就诊 ID 参数(可选)
|
||||
if (queryParams && queryParams.encounterId) {
|
||||
params.encounterId = queryParams.encounterId;
|
||||
}
|
||||
|
||||
return request({
|
||||
url: '/doctor-station/inspection/get-applyList',
|
||||
method: 'get',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取检验申请单列表
|
||||
*/
|
||||
@@ -886,11 +917,33 @@ export function saveInspectionApplication(data) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检验申请单
|
||||
* 查询申请单号
|
||||
*/
|
||||
export function deleteInspectionApplication(id) {
|
||||
export function checkInspectionApplicationNo(applyNo){
|
||||
// 如果申请单号为空,返回一个rejected promise以避免向后端发送空值
|
||||
if (!applyNo) {
|
||||
console.debug('申请单号为空,跳过API调用');
|
||||
return Promise.resolve({
|
||||
code: 200,
|
||||
data: { exists: false },
|
||||
message: '申请单号不存在'
|
||||
});
|
||||
}
|
||||
|
||||
return request({
|
||||
url: '/doctor-station/inspection/application/' + id,
|
||||
url: '/doctor-station/inspection/apply-no',
|
||||
method: 'get',
|
||||
params: { applyNo: applyNo }, // 确保参数名为applyNo
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除检验申请单
|
||||
* @param {string} applyNo 申请单号
|
||||
*/
|
||||
export function deleteInspectionApplication(applyNo) {
|
||||
return request({
|
||||
url: '/doctor-station/inspection/apply/' + applyNo,
|
||||
method: 'delete',
|
||||
});
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user