This commit is contained in:
		
							parent
							
								
									bab932cdbe
								
							
						
					
					
						commit
						286f4ddacd
					
				| 
						 | 
				
			
			@ -107,11 +107,15 @@ const getTeamList = async () => {
 | 
			
		|||
          text: item.teamName,
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
      teamList.value.unshift({
 | 
			
		||||
        value: '',
 | 
			
		||||
        text: '全部',
 | 
			
		||||
      })
 | 
			
		||||
      if (res.data.some((item) => item.teamLeaderIdCard == userInfo.value.userName)) {
 | 
			
		||||
        const team = res.data.find((item) => item.teamLeaderIdCard == userInfo.value.userName)
 | 
			
		||||
        queryParams.teamId = team.id
 | 
			
		||||
      } else {
 | 
			
		||||
        queryParams.teamId = res.data[0].id
 | 
			
		||||
        // queryParams.teamId = res.data[0].id
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
    getList()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -251,7 +251,7 @@ const showDetail = (categoryName, spec) => {
 | 
			
		|||
 | 
			
		||||
  if (spec.manageType === '编码' && !isNaN(qty) && qty > 0) {
 | 
			
		||||
    uni.navigateTo({
 | 
			
		||||
      url: '/pages/toolsLedger/toolsLedgerDetails?typeId=' + spec.typeId,
 | 
			
		||||
      url: '/pages/materialsStation/toolsLedger/toolsLedgerDetails?typeId=' + spec.typeId,
 | 
			
		||||
    })
 | 
			
		||||
  } else {
 | 
			
		||||
    uni.showModal({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -61,7 +61,7 @@
 | 
			
		|||
<script setup>
 | 
			
		||||
import { ref, computed } from 'vue'
 | 
			
		||||
import { onLoad } from '@dcloudio/uni-app'
 | 
			
		||||
import { getToolsLedgerDetailsListApi } from '@/services/materialsStation'
 | 
			
		||||
import { getToolsDetailsListApi } from '@/services/materialsStation'
 | 
			
		||||
const typeId = ref(0)
 | 
			
		||||
const searchCode = ref('')
 | 
			
		||||
const selectedStatusIndex = ref(0)
 | 
			
		||||
| 
						 | 
				
			
			@ -87,7 +87,7 @@ const getDetailsList = async () => {
 | 
			
		|||
    typeId: typeId.value,
 | 
			
		||||
  }
 | 
			
		||||
  try {
 | 
			
		||||
    const res = await getToolsLedgerDetailsListApi(params)
 | 
			
		||||
    const res = await getToolsDetailsListApi(params)
 | 
			
		||||
    console.log('获取设备详情列表数据:', res)
 | 
			
		||||
 | 
			
		||||
    if (res.code === 200) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -246,6 +246,15 @@ export const getToolsLedgerList = (data) => {
 | 
			
		|||
  })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 台账-详情
 | 
			
		||||
export const getToolsDetailsListApi = (data) => {
 | 
			
		||||
  return http({
 | 
			
		||||
    method: 'GET',
 | 
			
		||||
    url: '/material/material_maMachine/getToolsDetailsList',
 | 
			
		||||
    data,
 | 
			
		||||
  })
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// 班组库存
 | 
			
		||||
export const getTeamUseNumList = (data) => {
 | 
			
		||||
  return http({
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue