Kaynağa Gözat

fix: 修改

han 2 yıl önce
ebeveyn
işleme
09135dcdb7
1 değiştirilmiş dosya ile 133 ekleme ve 0 silme
  1. 133 0
      src/api/biz/visit/checkApi.ts

+ 133 - 0
src/api/biz/visit/checkApi.ts

@@ -0,0 +1,133 @@
+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',
+}
+
+/**
+ *
+ * @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) => {
+  return defHttp.post({
+    url: Api.archivesPatrolWardQueryCheckRoomRecord,
+    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) });
+};
+/**
+ *
+ * @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 });
+};
+
+/**
+ * @description: 查房页面各条件人员数量,权限 - biz:patrolward:querypersonnumber
+ * @method: get
+ */
+export const archivesPatrolWardQueryPersonNumber = () => {
+  return defHttp.get({ url: Api.archivesPatrolWardQueryPersonNumber });
+};
+/**
+ * @description: 关注或取消关注,权限 - biz:patrolward:followOrNo
+ * @method: get
+ */
+export const archivesPatrolWardFollowOrNo = () => {
+  return defHttp.post({ url: Api.archivesPatrolWardFollowOrNo });
+};