Selaa lähdekoodia

feat: 添加新页面

fan 2 vuotta sitten
vanhempi
commit
249ff9e8d5

+ 21 - 0
src/utils/index.ts

@@ -5,6 +5,8 @@ import { unref } from 'vue';
 import { isObject } from '/@/utils/is';
 import { cloneDeep } from 'lodash-es';
 
+import dayjs from 'dayjs';
+
 export const noop = () => {};
 
 /**
@@ -200,3 +202,22 @@ export function setParams(params: any) {
   console.log('🚀 ~ file: index.ts:194 ~ setParams ~ params', params);
   return params;
 }
+
+/**
+ * @description: Date Range 预设范围 related enumeration
+ */
+export function dateRanges(format = 'YYYY-MM-DD') {
+  console.log('🚀 ~ file: index.ts:210 ~ dateRanges ~ format:', format);
+  return {
+    今天: [dayjs(), dayjs()],
+    本周: [dayjs(), dayjs().endOf('week')],
+    上周: [
+      dayjs().add(-1, 'week').startOf('week').add(1, 'day'),
+      dayjs().add(-1, 'week').endOf('week').add(1, 'day'),
+    ],
+    本月: [dayjs(), dayjs().endOf('month')],
+    上月: [dayjs().add(-1, 'month').startOf('month'), dayjs().add(-1, 'month').endOf('month')],
+    // Today: [dayjs(), dayjs()],
+    // 'This Month': [dayjs(), dayjs().endOf('month')],
+  };
+}

+ 18 - 0
src/views/biz/README.md

@@ -13,3 +13,21 @@
     - long 长期排床模板
     - memo 排床备忘录
     - person 个人排班
+  - engineer 工程师端
+    - bed 床位管理
+    - water 水处理设备
+    - other 其他设备
+    - upkeep 保养记录
+    - dialysis 透析设备
+    - bio 生化设备
+    - dics 业务字典
+  - mission 宣教管理
+    - article 宣教库
+    - recycling 回收站
+  - stats 统计分析
+    - treat 透析治疗
+    - supplies 药品耗材
+    - patient 患者信息
+    - quality 质量管理
+    - infect 院感信息
+    - dialysis 透析设备

+ 7 - 0
src/views/biz/engineer/bed/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/engineer/bio/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/engineer/dialysis/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/engineer/other/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/engineer/upkeep/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/engineer/water/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/mission/article/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/mission/record/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/stats/dialysis/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/stats/infect/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/stats/patient/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/stats/quality/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/stats/supplies/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>

+ 7 - 0
src/views/biz/stats/treat/index.vue

@@ -0,0 +1,7 @@
+<template>
+  <div> 占位符 </div>
+</template>
+
+<script setup lang="ts"></script>
+
+<style lang="less" scoped></style>