| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- import { defHttp } from '/@/utils/http/axios';
- import { setParams } from '/@/utils/index';
- enum Api {
- archivesPatrolWardQueryPage = '/archives/patrolWard/query/page',
- archivesPatrolWardDetail = '/archives/patrolWard/detail',
- archivesPatrolWardAdd = '/archives/patrolWard/add',
- archivesPatrolWardEdit = '/archives/patrolWard/edit',
- archivesPatrolWardRemove = '/archives/patrolWard/removeByIds',
- }
- /**
- *
- * @author fan
- * @date 2023/06/30 17:39
- * @description: 根据条件查询查房列表,权限 - biz:patrolward:query
- * @method: POST
- * @param:
- * {String} updatorName updator_name
- * @return:
- * {String} patientBasicId 基础病历id
- * {String} scheduledId 排床id
- * {Date} patrolTime 查房时间
- * {String} content 查房内容
- * {String} updatorName updator_name
- */
- export const archivesPatrolWardQueryPage = (params?: object) => {
- return defHttp.post({ url: Api.archivesPatrolWardQueryPage, params: setParams(params) });
- };
- /**
- *
- * @author fan
- * @date 2023/06/30 17:39
- * @description: 根据id查询查房详细信息,权限 - biz:patrolward:query
- * @method: GET
- * @param: id 查房主键id
- * @return:
- * {String} patientBasicId 基础病历id
- * {String} scheduledId 排床id
- * {Date} patrolTime 查房时间
- * {String} content 查房内容
- * {String} updatorName updator_name
- */
- export const archivesPatrolWardDetail = (id: string) => {
- return defHttp.get({ url: Api.archivesPatrolWardDetail + '/' + id });
- };
- /**
- *
- * @author fan
- * @date 2023/06/30 17:39
- * @description: 添加查房,权限 - biz:patrolward:add
- * @method: POST
- * @param:
- * {String} patientBasicId 基础病历id
- * {String} scheduledId 排床id
- * {Date} patrolTime 查房时间
- * {String} content 查房内容
- * @return:
- * 0 添加失败
- * 1 添加成功
- */
- export const archivesPatrolWardAdd = (params?: object) => {
- return defHttp.post({ url: Api.archivesPatrolWardAdd, params: params });
- };
- /**
- *
- * @author fan
- * @date 2023/06/30 17:39
- * @description: 通过主键id编辑查房,权限 - biz:patrolward:edit
- * @method: POST
- * @param:
- * {String} patientBasicId 基础病历id
- * {String} scheduledId 排床id
- * {Date} patrolTime 查房时间
- * {String} content 查房内容
- * @return:
- * 0 编辑失败
- * 1 编辑成功
- */
- export const archivesPatrolWardEdit = (params?: object) => {
- return defHttp.post({ url: Api.archivesPatrolWardEdit, params: params });
- };
- /**
- * @description: 删除,权限 - biz:patrolward:remove
- * @method: POST
- */
- export const archivesPatrolWardRemove = (params: Array<string | number>) => {
- return defHttp.post({ url: Api.archivesPatrolWardRemove, params: params });
- };
|