门诊号码管理维护界面前后端

This commit is contained in:
2025-11-27 13:08:42 +08:00
parent 88d79729fe
commit a0e52da437
7 changed files with 1096 additions and 316 deletions

View File

@@ -7,19 +7,12 @@ import request from '@/utils/request'
/**
* 分页查询门诊号码段列表
* 要求:普通用户只能查看自己的,管理员可以查看所有
* 注意由于后端接口不存在直接返回失败响应让调用方使用localStorage数据避免404错误
*/
export function listOutpatientNo(query) {
// return request({
// url: '/business-rule/outpatient-no/page',
// method: 'get',
// params: query,
// 由于后端接口不存在直接返回失败响应不发送实际请求避免控制台显示404错误
// 调用方会在判断 code !== 200 时使用 localStorage 数据
return Promise.resolve({
code: 404,
msg: '接口不存在,已使用本地数据',
data: null
return request({
url: '/business-rule/outpatient-no/page',
method: 'get',
params: query,
})
}
@@ -50,11 +43,11 @@ export function updateOutpatientNo(data) {
* 删除门诊号码段
*要求:双重校验(归属权+使用状态)
*/
export function deleteOutpatientNo(params) {
export function deleteOutpatientNo(data) {
return request({
url: '/business-rule/outpatient-no',
method: 'delete',
params,
data,
})
}