This commit is contained in:
parent
1b0537eab7
commit
925f42559b
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -308,3 +308,12 @@ export const updateLeaseApplyInfoSignApi = (data) => {
|
|||
data,
|
||||
})
|
||||
}
|
||||
|
||||
// 获取班组列表
|
||||
export const getListByIdCardApi = (data) => {
|
||||
return http({
|
||||
method: 'GET',
|
||||
url: '/material/bmTeam/getListByIdCard',
|
||||
data,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue