|
@@ -418,9 +418,11 @@ const getDelegateExcelHtml = async () => {
|
|
|
}
|
|
|
|
|
|
//关联材料选择
|
|
|
+const cancelRowData = ref({})
|
|
|
const linkSamplingChange = async ({ id, entrustId }, cancelRow) => {
|
|
|
await getDelegateExcelHtml()
|
|
|
if (!id) {
|
|
|
+ cancelRowData.value = cancelRow
|
|
|
await getCancelRow( cancelRow)
|
|
|
}
|
|
|
|
|
@@ -448,7 +450,7 @@ const getCancelRow = async (cancelRow) => {
|
|
|
const getDelegateDataInfo = async (id, entrustId, formData) => {
|
|
|
const { primaryKeyId } = nodeDataInfo.value
|
|
|
const { error, code, msg, data } = await samplingApi.getBussDataInfoTrialEntrust({
|
|
|
- id: entrustId,
|
|
|
+ id: entrustId || cancelRowData.value.entrustId,
|
|
|
sampleId: id,
|
|
|
pkeyId: nodeErTreeId.value,
|
|
|
projectId: projectId.value,
|