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