| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- import { defHttp } from '/@/utils/http/axios';
- import { setParams } from '/@/utils/index';
- enum Api {
- bedScheduledMemoQueryPage = '/bed/scheduledMemo/query/page',
- bedScheduledMemoDetail = '/bed/scheduledMemo/detail',
- bedScheduledMemoAdd = '/bed/scheduledMemo/add',
- bedScheduledMemoEdit = '/bed/scheduledMemo/edit',
- bedScheduledMemoRemove = '/bed/scheduledMemo/removeByIds',
- }
- /**
- *
- * @author lf
- * @date 2023/07/17 16:06
- * @description: 根据条件查询排床备忘录列表,权限 - scheduled:scheduledMemo:query
- * @method: POST
- * @param:
- * @return:
- * {String} patientBasicId 基础病历id
- * {Date} appointmentDate 预约日期
- * {String} appointmentSailings 预约班次
- * {String} remark 备注
- * {String} creatorName creator_name
- * {String} updatorName updator_name
- */
- export const bedScheduledMemoQueryPage = (params?: object) => {
- return defHttp.post({ url: Api.bedScheduledMemoQueryPage, params: setParams(params) });
- };
- /**
- *
- * @author lf
- * @date 2023/07/17 16:06
- * @description: 根据id查询排床备忘录详细信息,权限 - scheduled:scheduledMemo:query
- * @method: GET
- * @param: id 排床备忘录主键id
- * @return:
- * {String} patientBasicId 基础病历id
- * {Date} appointmentDate 预约日期
- * {String} appointmentSailings 预约班次
- * {String} remark 备注
- * {String} creatorName creator_name
- * {String} updatorName updator_name
- */
- export const bedScheduledMemoDetail = (id: string) => {
- return defHttp.get({ url: Api.bedScheduledMemoDetail + '/' + id });
- };
- /**
- *
- * @author lf
- * @date 2023/07/17 16:06
- * @description: 添加排床备忘录,权限 - scheduled:scheduledMemo:add
- * @method: POST
- * @param:
- * {String} patientBasicId 基础病历id
- * {Date} appointmentDate 预约日期
- * {String} appointmentSailings 预约班次
- * {String} remark 备注
- * {String} creatorName creator_name
- * {String} updatorName updator_name
- * @return:
- * 0 添加失败
- * 1 添加成功
- */
- export const bedScheduledMemoAdd = (params?: object) => {
- return defHttp.post({ url: Api.bedScheduledMemoAdd, params: params });
- };
- /**
- *
- * @author lf
- * @date 2023/07/17 16:06
- * @description: 通过主键id编辑排床备忘录,权限 - scheduled:scheduledMemo:edit
- * @method: POST
- * @param:
- * {String} patientBasicId 基础病历id
- * {Date} appointmentDate 预约日期
- * {String} appointmentSailings 预约班次
- * {String} remark 备注
- * {String} creatorName creator_name
- * {String} updatorName updator_name
- * @return:
- * 0 编辑失败
- * 1 编辑成功
- */
- export const bedScheduledMemoEdit = (params?: object) => {
- return defHttp.post({ url: Api.bedScheduledMemoEdit, params: params });
- };
- /**
- * @description: 删除,权限 - scheduled:scheduledMemo:remove
- * @method: POST
- */
- export const bedScheduledMemoRemove = (params: Array<string | number>) => {
- return defHttp.post({ url: Api.bedScheduledMemoRemove, params: params });
- };
|