材料站领料

This commit is contained in:
bb_pan 2025-07-05 17:19:29 +08:00
parent 2c35805ac6
commit 0bba5d051f
1 changed files with 11 additions and 2 deletions

View File

@ -396,7 +396,12 @@ export default {
projectId: this.maForm.projectId
}).then(res => {
console.log('🚀 ~ getAgreementId ~ res:', res)
this.agreementId = res.data.agreementId
if (!res.data || !Array.isArray(res.data)) {
this.agreementId = []
this.equipmentTypeList = []
return
}
this.agreementId = res.data
this.equipmentType()
})
},
@ -448,7 +453,11 @@ export default {
},
/** 机具类型 */
equipmentType() {
equipmentTypeTree({ agreementId: this.agreementId }).then(response => {
equipmentTypeTree({
agreementIdList: this.agreementId,
proId: this.maForm.projectId,
teamId: this.maForm.teamId
}).then(response => {
this.equipmentTypeList = response.data
//
this.flattenTypeOptions = this.processTypeData(response.data)