This commit is contained in:
bb_pan 2025-07-09 18:25:11 +08:00
parent bab932cdbe
commit 286f4ddacd
4 changed files with 17 additions and 4 deletions

View File

@ -107,11 +107,15 @@ const getTeamList = async () => {
text: item.teamName, text: item.teamName,
} }
}) })
teamList.value.unshift({
value: '',
text: '全部',
})
if (res.data.some((item) => item.teamLeaderIdCard == userInfo.value.userName)) { if (res.data.some((item) => item.teamLeaderIdCard == userInfo.value.userName)) {
const team = res.data.find((item) => item.teamLeaderIdCard == userInfo.value.userName) const team = res.data.find((item) => item.teamLeaderIdCard == userInfo.value.userName)
queryParams.teamId = team.id queryParams.teamId = team.id
} else { } else {
queryParams.teamId = res.data[0].id // queryParams.teamId = res.data[0].id
} }
} }
getList() getList()

View File

@ -251,7 +251,7 @@ const showDetail = (categoryName, spec) => {
if (spec.manageType === '编码' && !isNaN(qty) && qty > 0) { if (spec.manageType === '编码' && !isNaN(qty) && qty > 0) {
uni.navigateTo({ uni.navigateTo({
url: '/pages/toolsLedger/toolsLedgerDetails?typeId=' + spec.typeId, url: '/pages/materialsStation/toolsLedger/toolsLedgerDetails?typeId=' + spec.typeId,
}) })
} else { } else {
uni.showModal({ uni.showModal({

View File

@ -61,7 +61,7 @@
<script setup> <script setup>
import { ref, computed } from 'vue' import { ref, computed } from 'vue'
import { onLoad } from '@dcloudio/uni-app' import { onLoad } from '@dcloudio/uni-app'
import { getToolsLedgerDetailsListApi } from '@/services/materialsStation' import { getToolsDetailsListApi } from '@/services/materialsStation'
const typeId = ref(0) const typeId = ref(0)
const searchCode = ref('') const searchCode = ref('')
const selectedStatusIndex = ref(0) const selectedStatusIndex = ref(0)
@ -87,7 +87,7 @@ const getDetailsList = async () => {
typeId: typeId.value, typeId: typeId.value,
} }
try { try {
const res = await getToolsLedgerDetailsListApi(params) const res = await getToolsDetailsListApi(params)
console.log('获取设备详情列表数据:', res) console.log('获取设备详情列表数据:', res)
if (res.code === 200) { if (res.code === 200) {

View File

@ -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) => { export const getTeamUseNumList = (data) => {
return http({ return http({