|
@@ -100,7 +100,7 @@
|
|
</hc-new-dialog>
|
|
</hc-new-dialog>
|
|
|
|
|
|
<!-- 关联取样材料 -->
|
|
<!-- 关联取样材料 -->
|
|
- <SamplingPage v-model="linkSamplingModal" v-model:id="delegateHtmlForm.sampleId" :cid="searchForm.contractId" />
|
|
|
|
|
|
+ <SamplingPage v-model="linkSamplingModal" v-model:id="delegateHtmlForm.sampleId" :cid="searchForm.contractId" @change="linkSamplingChange" />
|
|
|
|
|
|
<!-- 创建报告 -->
|
|
<!-- 创建报告 -->
|
|
<hc-new-dialog v-model="rowActionModal" is-footer-center title="创建报告" widths="40rem" @close="rowActionModalClose">
|
|
<hc-new-dialog v-model="rowActionModal" is-footer-center title="创建报告" widths="40rem" @close="rowActionModalClose">
|
|
@@ -326,7 +326,7 @@ const addFormData = () => {
|
|
//合同段被选择
|
|
//合同段被选择
|
|
const delegateContractChange = async () => {
|
|
const delegateContractChange = async () => {
|
|
delegateHtmlLoading.value = true
|
|
delegateHtmlLoading.value = true
|
|
- await getDelegateDataInfo(editHtmlId.value)
|
|
|
|
|
|
+ //await getDelegateDataInfo(editHtmlId.value)
|
|
await getDelegateExcelHtml()
|
|
await getDelegateExcelHtml()
|
|
delegateHtmlLoading.value = false
|
|
delegateHtmlLoading.value = false
|
|
}
|
|
}
|
|
@@ -346,11 +346,18 @@ const getDelegateExcelHtml = async () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+//关联材料选择
|
|
|
|
+const linkSamplingChange = async ({ id, entrustId }) => {
|
|
|
|
+ await getDelegateDataInfo(id, entrustId)
|
|
|
|
+ await getDelegateExcelHtml()
|
|
|
|
+}
|
|
|
|
+
|
|
//获取委托数据
|
|
//获取委托数据
|
|
-const getDelegateDataInfo = async (editId) => {
|
|
|
|
|
|
+const getDelegateDataInfo = async (id, entrustId) => {
|
|
const { primaryKeyId } = nodeDataInfo.value
|
|
const { primaryKeyId } = nodeDataInfo.value
|
|
const { error, code, msg, data } = await samplingApi.getBussDataInfoTrialEntrust({
|
|
const { error, code, msg, data } = await samplingApi.getBussDataInfoTrialEntrust({
|
|
- id: editId ?? null,
|
|
|
|
|
|
+ id: entrustId,
|
|
|
|
+ sampleId: id,
|
|
pkeyId: nodeErTreeId.value,
|
|
pkeyId: nodeErTreeId.value,
|
|
projectId: projectId.value,
|
|
projectId: projectId.value,
|
|
contractId: delegateContractId.value,
|
|
contractId: delegateContractId.value,
|