材料站领料
This commit is contained in:
parent
75d5a76eb1
commit
5b06632e77
|
|
@ -325,7 +325,11 @@ const getAgreementInfoById = async () => {
|
||||||
}
|
}
|
||||||
const res = await getAgreementInfoByIdApi(params)
|
const res = await getAgreementInfoByIdApi(params)
|
||||||
console.log('🚀 ~ getAgreementInfoById ~ res:', res)
|
console.log('🚀 ~ getAgreementInfoById ~ res:', res)
|
||||||
const agreementId = res.data.agreementId
|
if (!res.data || !Array.isArray(res.data)) {
|
||||||
|
equipmentList = []
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const agreementId = res.data
|
||||||
getEquipmentList(agreementId)
|
getEquipmentList(agreementId)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('🚀 ~ getAgreementInfoById ~ error:', error)
|
console.log('🚀 ~ getAgreementInfoById ~ error:', error)
|
||||||
|
|
@ -335,7 +339,7 @@ const getAgreementInfoById = async () => {
|
||||||
const getEquipmentList = async (params) => {
|
const getEquipmentList = async (params) => {
|
||||||
console.log('🚀 ~ getEquipmentList ~ params:', params)
|
console.log('🚀 ~ getEquipmentList ~ params:', params)
|
||||||
try {
|
try {
|
||||||
const res = await getTypeTreeList({ agreementId: params })
|
const res = await getTypeTreeList({ agreementIdList: params, proId: formData.projectId, teamId: formData.teamId })
|
||||||
if (res.data.length > 0) {
|
if (res.data.length > 0) {
|
||||||
equipmentList.value = formatEquipmentTree(res.data)
|
equipmentList.value = formatEquipmentTree(res.data)
|
||||||
console.log('🚀 ~ getEquipmentList ~ machineList.value:', equipmentList.value)
|
console.log('🚀 ~ getEquipmentList ~ machineList.value:', equipmentList.value)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue