hldy_app/pages/NursingNew/component/nurse/api.js

27 lines
753 B
JavaScript
Raw Normal View History

2025-07-23 17:34:48 +08:00
// 引入 request 文件
import request from '@/request/index.js'
// 以下 api 为博主项目示例,实际与项目相匹配
// 查询服务类型
export const getServiceTree = () => {
return request({
2025-09-09 17:44:16 +08:00
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuConfigServiceCategory/getServiceTree`,
2025-07-23 17:34:48 +08:00
method: 'get',
})
}
// 查询表格
2025-10-09 17:04:26 +08:00
export const getNclist = (nuId,customerId) => {
2025-07-23 17:34:48 +08:00
return request({
2025-10-11 09:01:16 +08:00
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuBizNuCustomerServer/getNclist?nuId=${nuId}&customerId=${customerId}`,
2025-07-23 17:34:48 +08:00
method: 'get',
})
}
2025-10-11 09:01:16 +08:00
// 保存表格
2025-07-23 17:34:48 +08:00
export const addBatch = (params) => {
return request({
2025-10-11 09:01:16 +08:00
url: `${uni.getStorageSync('serverUrl')}/nuIpadApi/nuBizNuCustomerServer/addBatch`,
2025-07-23 17:34:48 +08:00
method: 'post',
data: params,
})
}