const {
	http
} = uni.$u

//获取用户协议列表
export const getProtocolList = (data) => http.get('/dev-api/care/protocol/list', data);
//获取用户协议详情
export const getProtocolInfo = (data) => http.get(`/dev-api/care/protocol/${data.id??0}`, data);
//查询护理人员列表
export const getNursesList = (data) => http.get(`/dev-api/care/nurses/list`,data);
//查询护理人员详情
export const getNursesInfo = (data) => http.get(`/dev-api/care/nurses/${data.id??0}`,data);
//编辑护理人员
export const editNurses = (data) => http.get(`/dev-api/care/nurses/${data.id??0}`,data);

//护理申请列表
export const getCareList = (data) => http.get(`/dev-api/care/applications/list`, data);
//护理详情
export const getCareInfo = (data) => http.get(`/dev-api/care/applications/${data.id??0}`, data);


//护理送审
export const postCareStart = (params, config = {}) => http.post('/dev-api/care/applications/start', params, config);

//流程记录列表
export const getCareRecords = (data) => http.get('/dev-api/care/careRecords/list', data);
//删除审批单
export const delCareApp = (params, config = {}) => http.delete(`/dev-api/care/applications/${params.id??0}`, params, config);
//护理指派
export const postCareAssign = (parmas, config = {}) => http.post('/dev-api/care/applications/assign', parmas, config)
//护理审核
export const postCareCheck = (parmas, config = {}) => http.post('/dev-api/care/applications/check', parmas, config)
//完成护理申请
export const postCareComplete = (parmas, config = {}) => http.post('/dev-api/care/applications/complete', parmas, config)
//查询全部公司 
export const getCompanyList = (data) =>http.get('/dev-api/care/companies/listAll', data)
//查询公司的护理人员
export const getCompanyNursesList = (data) => http.get('/dev-api/care/nurses/listCompanyNurses', data)