|
@@ -418,12 +418,16 @@ const getDelegateExcelHtml = async () => {
|
|
}
|
|
}
|
|
|
|
|
|
//关联材料选择
|
|
//关联材料选择
|
|
-const linkSamplingChange = async ({ id, entrustId }) => {
|
|
|
|
|
|
+const linkSamplingChange = async ({ id, entrustId }, cancelRow) => {
|
|
await getDelegateExcelHtml()
|
|
await getDelegateExcelHtml()
|
|
if (id) {
|
|
if (id) {
|
|
isCancel.value = false
|
|
isCancel.value = false
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
|
+
|
|
|
|
+ await getCancelRow( cancelRow)
|
|
|
|
+
|
|
|
|
+
|
|
isCancel.value = true
|
|
isCancel.value = true
|
|
|
|
|
|
}
|
|
}
|
|
@@ -433,7 +437,17 @@ const linkSamplingChange = async ({ id, entrustId }) => {
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+//取消关联取样
|
|
|
|
+
|
|
|
|
|
|
|
|
+const getCancelRow = async (cancelRow) => {
|
|
|
|
+
|
|
|
|
+ const { error, code, msg, data } = await samplingApi.cancelSample({
|
|
|
|
+ id: cancelRow.entrustId,
|
|
|
|
+ sampleId: cancelRow.id,
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+}
|
|
//获取委托数据
|
|
//获取委托数据
|
|
const getDelegateDataInfo = async (id, entrustId, formData) => {
|
|
const getDelegateDataInfo = async (id, entrustId, formData) => {
|
|
const { primaryKeyId } = nodeDataInfo.value
|
|
const { primaryKeyId } = nodeDataInfo.value
|