|
|
@@ -2,132 +2,50 @@ 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',
|
|
|
- archivesPatrolWardQueryCheckRoomRecord = '/archives/patrolWard/queryCheckRoomRecord',
|
|
|
- archivesPatrolWardQueryPersonNumber = '/archives/patrolWard/queryPersonNumber',
|
|
|
- archivesPatrolWardFollowOrNo = '/archives/patrolWard/followOrNo',
|
|
|
+ checkQueryPage = '/archives/patrolWard/query/page',
|
|
|
+ checkDetail = '/archives/patrolWard/detail',
|
|
|
+ checkAdd = '/archives/patrolWard/add',
|
|
|
+ checkEdit = '/archives/patrolWard/edit',
|
|
|
+ checkRemove = '/archives/patrolWard/removeByIds',
|
|
|
+ checkQueryCheckRoomRecord = '/archives/patrolWard/queryCheckRoomRecord',
|
|
|
+ checkQueryPersonNumber = '/archives/patrolWard/queryPersonNumber',
|
|
|
+ checkFollowOrNo = '/archives/patrolWard/followOrNo',
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- *
|
|
|
- * @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 archivesPatrolWardQueryCheckRoomRecord = (params?: object) => {
|
|
|
+export const checkQueryCheckRoomRecord = (params?: object) => {
|
|
|
return defHttp.post({
|
|
|
- url: Api.archivesPatrolWardQueryCheckRoomRecord,
|
|
|
+ url: Api.checkQueryCheckRoomRecord,
|
|
|
params: setParams(params),
|
|
|
});
|
|
|
};
|
|
|
-/**
|
|
|
- *
|
|
|
- * @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) });
|
|
|
+export const checkQueryPage = (params?: object) => {
|
|
|
+ return defHttp.post({
|
|
|
+ url: Api.checkQueryPage,
|
|
|
+ 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 });
|
|
|
+
|
|
|
+export const checkDetail = (id: string) => {
|
|
|
+ return defHttp.get({ url: Api.checkDetail + '/' + 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 });
|
|
|
+export const checkAdd = (params?: object) => {
|
|
|
+ return defHttp.post({ url: Api.checkAdd, 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 });
|
|
|
+export const checkEdit = (params?: object) => {
|
|
|
+ return defHttp.post({ url: Api.checkEdit, params: params });
|
|
|
};
|
|
|
|
|
|
-/**
|
|
|
- * @description: 删除,权限 - biz:patrolward:remove
|
|
|
- * @method: POST
|
|
|
- */
|
|
|
-export const archivesPatrolWardRemove = (params: Array<string | number>) => {
|
|
|
- return defHttp.post({ url: Api.archivesPatrolWardRemove, params: params });
|
|
|
+export const checkRemove = (params: Array<string | number>) => {
|
|
|
+ return defHttp.post({ url: Api.checkRemove, params: params });
|
|
|
};
|
|
|
|
|
|
-/**
|
|
|
- * @description: 查房页面各条件人员数量,权限 - biz:patrolward:querypersonnumber
|
|
|
- * @method: get
|
|
|
- */
|
|
|
-export const archivesPatrolWardQueryPersonNumber = () => {
|
|
|
- return defHttp.get({ url: Api.archivesPatrolWardQueryPersonNumber });
|
|
|
+export const checkQueryPersonNumber = () => {
|
|
|
+ return defHttp.get({ url: Api.checkQueryPersonNumber });
|
|
|
};
|
|
|
-/**
|
|
|
- * @description: 关注或取消关注,权限 - biz:patrolward:followOrNo
|
|
|
- * @method: get
|
|
|
- */
|
|
|
-export const archivesPatrolWardFollowOrNo = () => {
|
|
|
- return defHttp.post({ url: Api.archivesPatrolWardFollowOrNo });
|
|
|
+
|
|
|
+export const checkFollowOrNo = (id?: string) => {
|
|
|
+ return defHttp.post({ url: Api.checkFollowOrNo + '/' + id });
|
|
|
};
|