Showing
4 changed files
with
35 additions
and
5 deletions
src/api/material.js
0 → 100644
| 1 | +/* | ||
| 2 | + * @Date: 2022-06-17 14:54:29 | ||
| 3 | + * @LastEditors: hookehuyr hookehuyr@gmail.com | ||
| 4 | + * @LastEditTime: 2024-07-25 10:01:37 | ||
| 5 | + * @FilePath: /temple_material_request/src/api/material.js | ||
| 6 | + * @Description: 物资申请接口 | ||
| 7 | + */ | ||
| 8 | +import { fn, fetch } from '@/api/fn'; | ||
| 9 | + | ||
| 10 | +const Api = { | ||
| 11 | + ACTIVITY_DEPTS: '/srv/?a=activity_depts', | ||
| 12 | +}; | ||
| 13 | + | ||
| 14 | +/** | ||
| 15 | + * @description: 获取活动组别列表 | ||
| 16 | + * @param: activity_id 活动ID | ||
| 17 | + * @param: is_previous 是否获取同类型上次活动的部门列表。1=是,0=否 | ||
| 18 | + * @param: only_my_dept 是否只获取我所在的部门列表。1=是,0=否 | ||
| 19 | + * @returns: dept_id 活动组别ID | ||
| 20 | + * @returns: dept_name 活动组别名称 | ||
| 21 | + */ | ||
| 22 | +export const getActivityDeptsAPI = (params) => fn(fetch.get(Api.ACTIVITY_DEPTS, params)); |
| ... | @@ -2,8 +2,8 @@ | ... | @@ -2,8 +2,8 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2022-05-28 10:17:40 | 3 | * @Date: 2022-05-28 10:17:40 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2022-12-01 16:33:51 | 5 | + * @LastEditTime: 2024-07-25 09:46:46 |
| 6 | - * @FilePath: /data-table/src/utils/axios.js | 6 | + * @FilePath: /temple_material_request/src/utils/axios.js |
| 7 | * @Description: | 7 | * @Description: |
| 8 | */ | 8 | */ |
| 9 | import axios from 'axios'; | 9 | import axios from 'axios'; |
| ... | @@ -13,7 +13,7 @@ import { strExist } from '@/utils/tools' | ... | @@ -13,7 +13,7 @@ import { strExist } from '@/utils/tools' |
| 13 | // import { parseQueryString } from '@/utils/tools' | 13 | // import { parseQueryString } from '@/utils/tools' |
| 14 | 14 | ||
| 15 | axios.defaults.params = { | 15 | axios.defaults.params = { |
| 16 | - f: 'custom_form', | 16 | + f: 'good', |
| 17 | }; | 17 | }; |
| 18 | 18 | ||
| 19 | /** | 19 | /** | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-07-23 10:50:38 | 2 | * @Date: 2024-07-23 10:50:38 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-07-24 11:04:16 | 4 | + * @LastEditTime: 2024-07-25 10:00:39 |
| 5 | * @FilePath: /temple_material_request/src/views/material_list.vue | 5 | * @FilePath: /temple_material_request/src/views/material_list.vue |
| 6 | * @Description: 物资情况页面 | 6 | * @Description: 物资情况页面 |
| 7 | --> | 7 | --> |
| ... | @@ -53,6 +53,7 @@ import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@ | ... | @@ -53,6 +53,7 @@ import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@ |
| 53 | //import { } from '@/composables' | 53 | //import { } from '@/composables' |
| 54 | import { styleColor } from "@/constant.js"; | 54 | import { styleColor } from "@/constant.js"; |
| 55 | import materialDetail from '@/components/materialDetail/index.vue'; | 55 | import materialDetail from '@/components/materialDetail/index.vue'; |
| 56 | +import { getActivityDeptsAPI } from "@/api/material"; | ||
| 56 | 57 | ||
| 57 | const $route = useRoute(); | 58 | const $route = useRoute(); |
| 58 | const $router = useRouter(); | 59 | const $router = useRouter(); |
| ... | @@ -63,6 +64,9 @@ const onChange = (index) => { | ... | @@ -63,6 +64,9 @@ const onChange = (index) => { |
| 63 | console.warn(index); | 64 | console.warn(index); |
| 64 | } | 65 | } |
| 65 | 66 | ||
| 67 | +// TODO: getActivityDeptsAPI,is_previous=0,only_my_dept=0 | ||
| 68 | +const tabList = ref([]); // 组别列表 | ||
| 69 | + | ||
| 66 | const list = ref([]); | 70 | const list = ref([]); |
| 67 | const loading = ref(false); | 71 | const loading = ref(false); |
| 68 | const finished = ref(false); | 72 | const finished = ref(false); | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2024-07-23 12:53:15 | 2 | * @Date: 2024-07-23 12:53:15 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-07-24 15:15:38 | 4 | + * @LastEditTime: 2024-07-25 10:01:06 |
| 5 | * @FilePath: /temple_material_request/src/views/material_request.vue | 5 | * @FilePath: /temple_material_request/src/views/material_request.vue |
| 6 | * @Description: 申领物资页面 | 6 | * @Description: 申领物资页面 |
| 7 | --> | 7 | --> |
| ... | @@ -88,11 +88,15 @@ import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@ | ... | @@ -88,11 +88,15 @@ import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@ |
| 88 | import { styleColor } from "@/constant.js"; | 88 | import { styleColor } from "@/constant.js"; |
| 89 | import chooseMaterial from '@/components/chooseMaterial/index.vue'; | 89 | import chooseMaterial from '@/components/chooseMaterial/index.vue'; |
| 90 | import materialDetail from '@/components/materialDetail/index.vue'; | 90 | import materialDetail from '@/components/materialDetail/index.vue'; |
| 91 | +import { getActivityDeptsAPI } from "@/api/material"; | ||
| 91 | 92 | ||
| 92 | const $route = useRoute(); | 93 | const $route = useRoute(); |
| 93 | const $router = useRouter(); | 94 | const $router = useRouter(); |
| 94 | useTitle($route.meta.title); | 95 | useTitle($route.meta.title); |
| 95 | 96 | ||
| 97 | +// TODO: getActivityDeptsAPI,is_previous=1,only_my_dept=1 | ||
| 98 | +const tabList = ref([]); // 组别列表 | ||
| 99 | + | ||
| 96 | const is_all_checked = ref(false); | 100 | const is_all_checked = ref(false); |
| 97 | const num_value = ref(''); | 101 | const num_value = ref(''); |
| 98 | 102 | ... | ... |
-
Please register or login to post a comment