This commit is contained in:
bb_pan 2025-07-16 10:10:54 +08:00
parent 1b0537eab7
commit 925f42559b
3 changed files with 13 additions and 4 deletions

View File

@ -55,7 +55,7 @@
<script setup>
import { onLoad } from '@dcloudio/uni-app'
import { ref, reactive } from 'vue'
import { getBmTeamList, getTeamWarnDetailsListApi } from '@/services/materialsStation'
import { getListByIdCardApi, getTeamWarnDetailsListApi } from '@/services/materialsStation'
import { useMemberStore } from '@/stores'
const memberStore = useMemberStore()
const userInfo = ref(memberStore.userInfo || {})
@ -98,7 +98,7 @@ const back = () => {
const getTeamList = async () => {
try {
const idCard = userInfo.value.userName || ''
const res = await getBmTeamList({ isAll: 0 })
const res = await getListByIdCardApi({ idCard })
if (res.data.length > 0) {
teamList.value = res.data.map((item) => {
return {

View File

@ -91,7 +91,7 @@
<script setup>
import { onLoad } from '@dcloudio/uni-app'
import { onMounted, ref, reactive, computed } from 'vue'
import { getBmTeamList, getToolsLedgerList, getTeamUseNumList } from '@/services/materialsStation'
import { getListByIdCardApi, getToolsLedgerList, getTeamUseNumList } from '@/services/materialsStation'
import { useMemberStore } from '@/stores'
const memberStore = useMemberStore()
const userInfo = ref(memberStore.userInfo || {})
@ -132,7 +132,7 @@ onMounted(() => {
const getTeamList = async () => {
try {
const idCard = userInfo.value.userName || ''
const res = await getBmTeamList({ isAll: 0 })
const res = await getListByIdCardApi({ idCard })
if (res.data.length > 0) {
teamList.value = res.data.map((item) => {
return {

View File

@ -308,3 +308,12 @@ export const updateLeaseApplyInfoSignApi = (data) => {
data,
})
}
// 获取班组列表
export const getListByIdCardApi = (data) => {
return http({
method: 'GET',
url: '/material/bmTeam/getListByIdCard',
data,
})
}