|
@ -527,15 +527,17 @@ const openForm = async (type: string, row?: Object) => { |
|
|
item.componentProps.isSearchList = true |
|
|
item.componentProps.isSearchList = true |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
formRef.value.open(type, row) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
if (type == 'update') { |
|
|
if (type == 'update') { |
|
|
let updateData = await PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailEditData({ |
|
|
let updateData = await PurchasereturnRequestDetailApi.getPurchasereturnRequestDetailEditData({ |
|
|
masterId:row.masterId |
|
|
masterId:row.masterId |
|
|
}) |
|
|
}) |
|
|
console.log('updateData',updateData) |
|
|
|
|
|
if(updateData){ |
|
|
if(updateData){ |
|
|
updateData['hahaha'] = updateData['receiptNumber'] |
|
|
updateData['hahaha'] = updateData['receiptNumber'] |
|
|
} |
|
|
} |
|
|
|
|
|
console.log('updateData',updateData) |
|
|
getSupplierOptions(updateData['itemCode']) |
|
|
getSupplierOptions(updateData['itemCode']) |
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
if (item.field == 'supplierCode') { |
|
|
if (item.field == 'supplierCode') { |
|
@ -548,8 +550,9 @@ const openForm = async (type: string, row?: Object) => { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
tableData.value = updateData.subList||[] |
|
|
tableData.value = updateData.subList||[] |
|
|
|
|
|
formRef.value.open(type, updateData) |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
formRef.value.open(type, row) |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
// 获取部门 用于详情 部门回显 |
|
|